Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __HID_LG4FF_H
0003 #define __HID_LG4FF_H
0004 
0005 #ifdef CONFIG_LOGIWHEELS_FF
0006 extern int lg4ff_no_autoswitch; /* From hid-lg.c */
0007 
0008 int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
0009                  struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data);
0010 int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report,
0011         u8 *rd, int size, struct lg_drv_data *drv_data);
0012 int lg4ff_init(struct hid_device *hdev);
0013 int lg4ff_deinit(struct hid_device *hdev);
0014 #else
0015 static inline int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
0016                        struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data) { return 0; }
0017 static inline int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report,
0018         u8 *rd, int size, struct lg_drv_data *drv_data) { return 0; }
0019 static inline int lg4ff_init(struct hid_device *hdev) { return -1; }
0020 static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; }
0021 #endif
0022 
0023 #endif