M7350/kernel/drivers/hid/hid-lg.h

40 lines
1.2 KiB
C
Raw Normal View History

2024-09-09 08:52:07 +00:00
#ifndef __HID_LG_H
#define __HID_LG_H
2024-09-09 08:57:42 +00:00
struct lg_drv_data {
unsigned long quirks;
void *device_props; /* Device specific properties */
};
2024-09-09 08:52:07 +00:00
#ifdef CONFIG_LOGITECH_FF
int lgff_init(struct hid_device *hdev);
#else
static inline int lgff_init(struct hid_device *hdev) { return -1; }
#endif
#ifdef CONFIG_LOGIRUMBLEPAD2_FF
int lg2ff_init(struct hid_device *hdev);
#else
static inline int lg2ff_init(struct hid_device *hdev) { return -1; }
#endif
#ifdef CONFIG_LOGIG940_FF
int lg3ff_init(struct hid_device *hdev);
#else
static inline int lg3ff_init(struct hid_device *hdev) { return -1; }
#endif
#ifdef CONFIG_LOGIWHEELS_FF
2024-09-09 08:57:42 +00:00
int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
struct hid_usage *usage, __s32 value, struct lg_drv_data *drv_data);
2024-09-09 08:52:07 +00:00
int lg4ff_init(struct hid_device *hdev);
int lg4ff_deinit(struct hid_device *hdev);
#else
2024-09-09 08:57:42 +00:00
static inline int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
struct hid_usage *usage, __s32 value, struct lg_drv_data *drv_data) { return 0; }
2024-09-09 08:52:07 +00:00
static inline int lg4ff_init(struct hid_device *hdev) { return -1; }
static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; }
#endif
#endif