hid-lg4ff.h 977 B

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