]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - drivers/hid/hid-lg4ff.h
UBUNTU: Ubuntu-4.13.0-45.50
[mirror_ubuntu-artful-kernel.git] / drivers / hid / hid-lg4ff.h
CommitLineData
a54dc779
MM
1#ifndef __HID_LG4FF_H
2#define __HID_LG4FF_H
3
4#ifdef CONFIG_LOGIWHEELS_FF
5extern int lg4ff_no_autoswitch; /* From hid-lg.c */
6
7int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
2a552c30 8 struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data);
c832f86e
SW
9int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report,
10 u8 *rd, int size, struct lg_drv_data *drv_data);
a54dc779
MM
11int lg4ff_init(struct hid_device *hdev);
12int lg4ff_deinit(struct hid_device *hdev);
13#else
14static inline int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
2a552c30 15 struct hid_usage *usage, s32 value, struct lg_drv_data *drv_data) { return 0; }
c832f86e
SW
16static inline int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report,
17 u8 *rd, int size, struct lg_drv_data *drv_data) { return 0; }
a54dc779
MM
18static inline int lg4ff_init(struct hid_device *hdev) { return -1; }
19static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; }
20#endif
21
22#endif