summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-lg4ff.h
diff options
context:
space:
mode:
authorSimon Wood2016-09-18 18:55:38 +0200
committerJiri Kosina2016-09-26 15:39:54 +0200
commitc832f86effbcf8833fc2c842aa501ce1eb4d0478 (patch)
tree51ed8b198c543e6ea7f2e22227bbd670d9665a15 /drivers/hid/hid-lg4ff.h
parentHID: hid-logitech: Introduce control for combined pedals feature (diff)
downloadkernel-qcow2-linux-c832f86effbcf8833fc2c842aa501ce1eb4d0478.tar.gz
kernel-qcow2-linux-c832f86effbcf8833fc2c842aa501ce1eb4d0478.tar.xz
kernel-qcow2-linux-c832f86effbcf8833fc2c842aa501ce1eb4d0478.zip
HID: hid-logitech: Add combined pedal support Logitech wheels
Add support for reporting a combined accelerator/brake axis for wheels which contain combined data in their HID stream. This includes DF, MOMO, MOMO2 and DFP. Signed-off-by: Simon Wood <simon@mungewell.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-lg4ff.h')
-rw-r--r--drivers/hid/hid-lg4ff.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/hid/hid-lg4ff.h b/drivers/hid/hid-lg4ff.h
index 66201af44da3..de1f350e0bd3 100644
--- a/drivers/hid/hid-lg4ff.h
+++ b/drivers/hid/hid-lg4ff.h
@@ -6,11 +6,15 @@ extern int lg4ff_no_autoswitch; /* From hid-lg.c */
int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data);
+int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report,
+ u8 *rd, int size, struct lg_drv_data *drv_data);
int lg4ff_init(struct hid_device *hdev);
int lg4ff_deinit(struct hid_device *hdev);
#else
static inline int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data) { return 0; }
+static inline int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report,
+ u8 *rd, int size, struct lg_drv_data *drv_data) { return 0; }
static inline int lg4ff_init(struct hid_device *hdev) { return -1; }
static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; }
#endif