xref: /linux/drivers/hid/hid-lg4ff.h (revision 2a552c30b2e44578b8d063e55b717ba94df84667)
1a54dc779SMichal Malý #ifndef __HID_LG4FF_H
2a54dc779SMichal Malý #define __HID_LG4FF_H
3a54dc779SMichal Malý 
4a54dc779SMichal Malý #ifdef CONFIG_LOGIWHEELS_FF
5a54dc779SMichal Malý extern int lg4ff_no_autoswitch; /* From hid-lg.c */
6a54dc779SMichal Malý 
7a54dc779SMichal Malý int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
8*2a552c30SMichal Malý 			     struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data);
9a54dc779SMichal Malý int lg4ff_init(struct hid_device *hdev);
10a54dc779SMichal Malý int lg4ff_deinit(struct hid_device *hdev);
11a54dc779SMichal Malý #else
12a54dc779SMichal Malý static inline int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
13*2a552c30SMichal Malý 					   struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data) { return 0; }
14a54dc779SMichal Malý static inline int lg4ff_init(struct hid_device *hdev) { return -1; }
15a54dc779SMichal Malý static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; }
16a54dc779SMichal Malý #endif
17a54dc779SMichal Malý 
18a54dc779SMichal Malý #endif
19