mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
0b1804e3d6
commit
d8ce9bf555
3 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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…
Reference in a new issue