xref: /linux/drivers/hid/hid-lg4ff.h (revision c832f86effbcf8833fc2c842aa501ce1eb4d0478)
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,
82a552c30SMichal Malý 			     struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data);
9*c832f86eSSimon Wood int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report,
10*c832f86eSSimon Wood 		u8 *rd, int size, struct lg_drv_data *drv_data);
11a54dc779SMichal Malý int lg4ff_init(struct hid_device *hdev);
12a54dc779SMichal Malý int lg4ff_deinit(struct hid_device *hdev);
13a54dc779SMichal Malý #else
14a54dc779SMichal Malý static inline int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
152a552c30SMichal Malý 					   struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data) { return 0; }
16*c832f86eSSimon Wood static inline int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report,
17*c832f86eSSimon Wood 		u8 *rd, int size, struct lg_drv_data *drv_data) { return 0; }
18a54dc779SMichal Malý static inline int lg4ff_init(struct hid_device *hdev) { return -1; }
19a54dc779SMichal Malý static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; }
20a54dc779SMichal Malý #endif
21a54dc779SMichal Malý 
22a54dc779SMichal Malý #endif
23