hid-lg4ff.h 1016 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __HID_LG4FF_H
  3. #define __HID_LG4FF_H
  4. #ifdef CONFIG_LOGIWHEELS_FF
  5. extern int lg4ff_no_autoswitch; /* From hid-lg.c */
  6. int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
  7. struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data);
  8. int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report,
  9. u8 *rd, int size, struct lg_drv_data *drv_data);
  10. int lg4ff_init(struct hid_device *hdev);
  11. int lg4ff_deinit(struct hid_device *hdev);
  12. #else
  13. static inline int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
  14. struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data) { return 0; }
  15. static inline int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report,
  16. u8 *rd, int size, struct lg_drv_data *drv_data) { return 0; }
  17. static inline int lg4ff_init(struct hid_device *hdev) { return -1; }
  18. static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; }
  19. #endif
  20. #endif