blob: de1f350e0bd300e5a81d4546bd1b4063becf8e11 [file] [log] [blame]
Michal Malýa54dc7792015-02-18 17:59:22 +01001#ifndef __HID_LG4FF_H
2#define __HID_LG4FF_H
3
4#ifdef CONFIG_LOGIWHEELS_FF
5extern int lg4ff_no_autoswitch; /* From hid-lg.c */
6
7int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
Michal Malý2a552c32015-04-08 22:56:39 +02008 struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data);
Simon Woodc832f862016-09-18 10:55:38 -06009int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report,
10 u8 *rd, int size, struct lg_drv_data *drv_data);
Michal Malýa54dc7792015-02-18 17:59:22 +010011int lg4ff_init(struct hid_device *hdev);
12int lg4ff_deinit(struct hid_device *hdev);
13#else
14static inline int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
Michal Malý2a552c32015-04-08 22:56:39 +020015 struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data) { return 0; }
Simon Woodc832f862016-09-18 10:55:38 -060016static inline int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report,
17 u8 *rd, int size, struct lg_drv_data *drv_data) { return 0; }
Michal Malýa54dc7792015-02-18 17:59:22 +010018static inline int lg4ff_init(struct hid_device *hdev) { return -1; }
19static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; }
20#endif
21
22#endif