diff options
author | Geliang Tang <geliangtang@163.com> | 2015-12-27 10:25:20 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-12-28 13:41:11 +0100 |
commit | d8ce9bf5551bfea431893bdd0a943f24a5170828 (patch) | |
tree | 5f36d4a6899cde40bdeac14ae5eaa6c046660c03 /drivers/hid | |
parent | HID: hid-logitech-hidpp: G920 remove deadzones (diff) | |
download | linux-d8ce9bf5551bfea431893bdd0a943f24a5170828.tar.xz linux-d8ce9bf5551bfea431893bdd0a943f24a5170828.zip |
HID: move to_hid_device() to hid.h
to_hid_device() macro is defined in both hid-lg4ff.c and
hid-logitech-hidpp.c. So I move it to include/linux/hid.h.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-lg4ff.c | 2 | ||||
-rw-r--r-- | drivers/hid/hid-logitech-hidpp.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c index fbddcb37ae98..3e160ff5f218 100644 --- a/drivers/hid/hid-lg4ff.c +++ b/drivers/hid/hid-lg4ff.c @@ -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 diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c index f2a481125522..bd2ab476c65e 100644 --- a/drivers/hid/hid-logitech-hidpp.c +++ b/drivers/hid/hid-logitech-hidpp.c @@ -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) { |