Loading drivers/hid/hid-lg4ff.c +0 −2 Original line number Diff line number Diff line Loading @@ -33,8 +33,6 @@ #include "hid-lg4ff.h" #include "hid-ids.h" #define to_hid_device(pdev) container_of(pdev, struct hid_device, dev) #define LG4FF_MMODE_IS_MULTIMODE 0 #define LG4FF_MMODE_SWITCHED 1 #define LG4FF_MMODE_NOT_MULTIMODE 2 Loading drivers/hid/hid-logitech-hidpp.c +0 −2 Original line number Diff line number Diff line Loading @@ -1310,8 +1310,6 @@ struct g920_private_data { u16 range; }; #define to_hid_device(pdev) container_of(pdev, struct hid_device, dev) static ssize_t g920_range_show(struct device *dev, struct device_attribute *attr, char *buf) { Loading include/linux/hid.h +3 −0 Original line number Diff line number Diff line Loading @@ -565,6 +565,9 @@ struct hid_device { /* device report descriptor */ wait_queue_head_t debug_wait; }; #define to_hid_device(pdev) \ container_of(pdev, struct hid_device, dev) static inline void *hid_get_drvdata(struct hid_device *hdev) { return dev_get_drvdata(&hdev->dev); Loading Loading
drivers/hid/hid-lg4ff.c +0 −2 Original line number Diff line number Diff line Loading @@ -33,8 +33,6 @@ #include "hid-lg4ff.h" #include "hid-ids.h" #define to_hid_device(pdev) container_of(pdev, struct hid_device, dev) #define LG4FF_MMODE_IS_MULTIMODE 0 #define LG4FF_MMODE_SWITCHED 1 #define LG4FF_MMODE_NOT_MULTIMODE 2 Loading
drivers/hid/hid-logitech-hidpp.c +0 −2 Original line number Diff line number Diff line Loading @@ -1310,8 +1310,6 @@ struct g920_private_data { u16 range; }; #define to_hid_device(pdev) container_of(pdev, struct hid_device, dev) static ssize_t g920_range_show(struct device *dev, struct device_attribute *attr, char *buf) { Loading
include/linux/hid.h +3 −0 Original line number Diff line number Diff line Loading @@ -565,6 +565,9 @@ struct hid_device { /* device report descriptor */ wait_queue_head_t debug_wait; }; #define to_hid_device(pdev) \ container_of(pdev, struct hid_device, dev) static inline void *hid_get_drvdata(struct hid_device *hdev) { return dev_get_drvdata(&hdev->dev); Loading