Jiri Slaby | 606bd0a | 2008-07-04 23:06:45 +0200 | [diff] [blame] | 1 | #ifndef __HID_LG_H |
| 2 | #define __HID_LG_H |
| 3 | |
Michal Malý | 8577dbf | 2012-03-31 11:17:25 +0200 | [diff] [blame] | 4 | struct lg_drv_data { |
| 5 | unsigned long quirks; |
| 6 | void *device_props; /* Device specific properties */ |
| 7 | }; |
| 8 | |
Jiri Slaby | 606bd0a | 2008-07-04 23:06:45 +0200 | [diff] [blame] | 9 | #ifdef CONFIG_LOGITECH_FF |
| 10 | int lgff_init(struct hid_device *hdev); |
| 11 | #else |
| 12 | static inline int lgff_init(struct hid_device *hdev) { return -1; } |
| 13 | #endif |
| 14 | |
| 15 | #ifdef CONFIG_LOGIRUMBLEPAD2_FF |
| 16 | int lg2ff_init(struct hid_device *hdev); |
| 17 | #else |
| 18 | static inline int lg2ff_init(struct hid_device *hdev) { return -1; } |
| 19 | #endif |
| 20 | |
Gary Stein | 74f292c | 2010-01-13 00:25:58 +0100 | [diff] [blame] | 21 | #ifdef CONFIG_LOGIG940_FF |
| 22 | int lg3ff_init(struct hid_device *hdev); |
| 23 | #else |
| 24 | static inline int lg3ff_init(struct hid_device *hdev) { return -1; } |
| 25 | #endif |
| 26 | |
Michal Malý | a7ac90f | 2011-08-04 16:24:22 +0200 | [diff] [blame] | 27 | #ifdef CONFIG_LOGIWHEELS_FF |
Michal Malý | 2b24a96 | 2012-09-23 22:41:08 +0200 | [diff] [blame] | 28 | int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field, |
| 29 | struct hid_usage *usage, __s32 value, struct lg_drv_data *drv_data); |
Simon Wood | 32c88cb | 2010-09-22 13:19:42 +0200 | [diff] [blame] | 30 | int lg4ff_init(struct hid_device *hdev); |
Michal Malý | 30bb75d | 2011-08-04 16:20:40 +0200 | [diff] [blame] | 31 | int lg4ff_deinit(struct hid_device *hdev); |
Simon Wood | 32c88cb | 2010-09-22 13:19:42 +0200 | [diff] [blame] | 32 | #else |
Michal Malý | 2b24a96 | 2012-09-23 22:41:08 +0200 | [diff] [blame] | 33 | static inline int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field, |
| 34 | struct hid_usage *usage, __s32 value, struct lg_drv_data *drv_data) { return 0; } |
Simon Wood | 32c88cb | 2010-09-22 13:19:42 +0200 | [diff] [blame] | 35 | static inline int lg4ff_init(struct hid_device *hdev) { return -1; } |
Michal Malý | 30bb75d | 2011-08-04 16:20:40 +0200 | [diff] [blame] | 36 | static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; } |
Simon Wood | 32c88cb | 2010-09-22 13:19:42 +0200 | [diff] [blame] | 37 | #endif |
| 38 | |
Jiri Slaby | 606bd0a | 2008-07-04 23:06:45 +0200 | [diff] [blame] | 39 | #endif |