diff options
author | Michal Malý <madcatxster@gmail.com> | 2012-03-31 11:17:25 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-04-03 04:09:50 +0200 |
commit | 8577dbf9d6eb07213caefb49e2017c177c5f023d (patch) | |
tree | 2c22ad4bad6a927220f76ab157b65d902deb8288 /drivers/hid/hid-lg.h | |
parent | d464c92b5234227c1698862a1906827e2e398ae0 (diff) | |
download | blackbird-op-linux-8577dbf9d6eb07213caefb49e2017c177c5f023d.tar.gz blackbird-op-linux-8577dbf9d6eb07213caefb49e2017c177c5f023d.zip |
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 @@ #ifndef __HID_LG_H #define __HID_LG_H +#include <linux/spinlock.h> + +struct lg_drv_data { + unsigned long quirks; + void *device_props; /* Device specific properties */ +}; + #ifdef CONFIG_LOGITECH_FF int lgff_init(struct hid_device *hdev); #else |