Michal Malý | a54dc779 | 2015-02-18 17:59:22 +0100 | [diff] [blame] | 1 | #ifndef __HID_LG4FF_H |
| 2 | #define __HID_LG4FF_H |
| 3 | |
| 4 | #ifdef CONFIG_LOGIWHEELS_FF |
| 5 | extern int lg4ff_no_autoswitch; /* From hid-lg.c */ |
| 6 | |
| 7 | int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field, |
Michal Malý | 2a552c3 | 2015-04-08 22:56:39 +0200 | [diff] [blame] | 8 | struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data); |
Michal Malý | a54dc779 | 2015-02-18 17:59:22 +0100 | [diff] [blame] | 9 | int lg4ff_init(struct hid_device *hdev); |
| 10 | int lg4ff_deinit(struct hid_device *hdev); |
| 11 | #else |
| 12 | static inline int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field, |
Michal Malý | 2a552c3 | 2015-04-08 22:56:39 +0200 | [diff] [blame] | 13 | struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data) { return 0; } |
Michal Malý | a54dc779 | 2015-02-18 17:59:22 +0100 | [diff] [blame] | 14 | static inline int lg4ff_init(struct hid_device *hdev) { return -1; } |
| 15 | static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; } |
| 16 | #endif |
| 17 | |
| 18 | #endif |