hid-lg4ff.h 704 B

123456789101112131415161718
  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_init(struct hid_device *hdev);
  8. int lg4ff_deinit(struct hid_device *hdev);
  9. #else
  10. static inline int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
  11. struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data) { return 0; }
  12. static inline int lg4ff_init(struct hid_device *hdev) { return -1; }
  13. static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; }
  14. #endif
  15. #endif