diff options
author | Michal Malý <madcatxster@gmail.com> | 2012-03-31 05:17:25 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-04-02 22:09:50 -0400 |
commit | 8577dbf9d6eb07213caefb49e2017c177c5f023d (patch) | |
tree | 2c22ad4bad6a927220f76ab157b65d902deb8288 /drivers/hid/hid-lg.h | |
parent | d464c92b5234227c1698862a1906827e2e398ae0 (diff) |
HID: hid-lg: Allow for custom device-specific properties to be stored in priv drvdata
This patch adds support for custom device-specific properties which can now be
stored as private driver data and read/saved using hid_get/set_drvdata().
Signed-off-by: Michal Malý <madcatxster@gmail.com>
Tested-by: simon@mungewell.org
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-lg.h')
-rw-r--r-- | drivers/hid/hid-lg.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/hid/hid-lg.h b/drivers/hid/hid-lg.h index 4b097286dc78..500457b67b21 100644 --- a/drivers/hid/hid-lg.h +++ b/drivers/hid/hid-lg.h | |||
@@ -1,6 +1,13 @@ | |||
1 | #ifndef __HID_LG_H | 1 | #ifndef __HID_LG_H |
2 | #define __HID_LG_H | 2 | #define __HID_LG_H |
3 | 3 | ||
4 | #include <linux/spinlock.h> | ||
5 | |||
6 | struct lg_drv_data { | ||
7 | unsigned long quirks; | ||
8 | void *device_props; /* Device specific properties */ | ||
9 | }; | ||
10 | |||
4 | #ifdef CONFIG_LOGITECH_FF | 11 | #ifdef CONFIG_LOGITECH_FF |
5 | int lgff_init(struct hid_device *hdev); | 12 | int lgff_init(struct hid_device *hdev); |
6 | #else | 13 | #else |