summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-lg.h
diff options
context:
space:
mode:
authorMichal Malý <madcatxster@gmail.com>2012-03-31 11:17:25 +0200
committerJiri Kosina <jkosina@suse.cz>2012-04-03 04:09:50 +0200
commit8577dbf9d6eb07213caefb49e2017c177c5f023d (patch)
tree2c22ad4bad6a927220f76ab157b65d902deb8288 /drivers/hid/hid-lg.h
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik... (diff)
downloadlinux-8577dbf9d6eb07213caefb49e2017c177c5f023d.tar.xz
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.h7
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