mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 03:33:59 +08:00
HID: multitouch: remove explicit usbhid dependency
This patch is part of the cleanup of the HID drivers against their low-level transport layer. With new touchscreens relying on I2C, it's better to handle now these dependencies before users get kernel oopses. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
b7966a4d7b
commit
4ebc9b636c
@ -32,7 +32,6 @@
|
|||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/usb.h>
|
#include <linux/usb.h>
|
||||||
#include <linux/input/mt.h>
|
#include <linux/input/mt.h>
|
||||||
#include "usbhid/usbhid.h"
|
|
||||||
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Stephane Chatty <chatty@enac.fr>");
|
MODULE_AUTHOR("Stephane Chatty <chatty@enac.fr>");
|
||||||
@ -907,7 +906,7 @@ static int mt_resume(struct hid_device *hdev)
|
|||||||
|
|
||||||
intf = to_usb_interface(hdev->dev.parent);
|
intf = to_usb_interface(hdev->dev.parent);
|
||||||
interface = intf->cur_altsetting;
|
interface = intf->cur_altsetting;
|
||||||
dev = hid_to_usb_dev(hdev);
|
dev = interface_to_usbdev(intf);
|
||||||
|
|
||||||
/* Some Elan legacy devices require SET_IDLE to be set on resume.
|
/* Some Elan legacy devices require SET_IDLE to be set on resume.
|
||||||
* It should be safe to send it to other devices too.
|
* It should be safe to send it to other devices too.
|
||||||
|
Loading…
Reference in New Issue
Block a user