diff options
author | Anssi Hannula <anssi.hannula@gmail.com> | 2006-07-19 01:40:47 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2006-07-19 01:40:47 -0400 |
commit | 224ee88fe39564358ec99b46bf3ee6e6999ae17d (patch) | |
tree | 3b88e3aa94c73ea2ea9c17feb5537287df769265 /drivers/usb/input/hid.h | |
parent | f6a01c85965c9e6fa8fb893c1fa5db16130d0ccb (diff) |
Input: add force feedback driver for PID devices
This replaces the older PID driver which was never completed.
Signed-off-by: Anssi Hannula <anssi.hannula@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/usb/input/hid.h')
-rw-r--r-- | drivers/usb/input/hid.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/usb/input/hid.h b/drivers/usb/input/hid.h index 778e575de352..29f1613bd08c 100644 --- a/drivers/usb/input/hid.h +++ b/drivers/usb/input/hid.h | |||
@@ -527,14 +527,25 @@ int hid_wait_io(struct hid_device* hid); | |||
527 | 527 | ||
528 | #ifdef CONFIG_HID_FF | 528 | #ifdef CONFIG_HID_FF |
529 | int hid_ff_init(struct hid_device *hid); | 529 | int hid_ff_init(struct hid_device *hid); |
530 | |||
531 | int hid_lgff_init(struct hid_device *hid); | ||
532 | int hid_tmff_init(struct hid_device *hid); | ||
533 | #ifdef CONFIG_HID_PID | ||
534 | int hid_pidff_init(struct hid_device *hid); | ||
535 | #else | ||
536 | static inline int hid_pidff_init(struct hid_device *hid) { return -ENODEV; } | ||
537 | #endif | ||
538 | |||
530 | #else | 539 | #else |
531 | static inline int hid_ff_init(struct hid_device *hid) { return -1; } | 540 | static inline int hid_ff_init(struct hid_device *hid) { return -1; } |
532 | #endif | 541 | #endif |
542 | |||
533 | static inline void hid_ff_exit(struct hid_device *hid) | 543 | static inline void hid_ff_exit(struct hid_device *hid) |
534 | { | 544 | { |
535 | if (hid->ff_exit) | 545 | if (hid->ff_exit) |
536 | hid->ff_exit(hid); | 546 | hid->ff_exit(hid); |
537 | } | 547 | } |
548 | |||
538 | static inline int hid_ff_event(struct hid_device *hid, struct input_dev *input, | 549 | static inline int hid_ff_event(struct hid_device *hid, struct input_dev *input, |
539 | unsigned int type, unsigned int code, int value) | 550 | unsigned int type, unsigned int code, int value) |
540 | { | 551 | { |
@@ -543,7 +554,3 @@ static inline int hid_ff_event(struct hid_device *hid, struct input_dev *input, | |||
543 | return -ENOSYS; | 554 | return -ENOSYS; |
544 | } | 555 | } |
545 | 556 | ||
546 | int hid_lgff_init(struct hid_device* hid); | ||
547 | int hid_tmff_init(struct hid_device* hid); | ||
548 | int hid_pid_init(struct hid_device* hid); | ||
549 | |||