diff options
Diffstat (limited to 'usr/src/dkms_source_tree/hid-input.c')
| -rw-r--r-- | usr/src/dkms_source_tree/hid-input.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/usr/src/dkms_source_tree/hid-input.c b/usr/src/dkms_source_tree/hid-input.c index 05709e3..ebcc02a 100644 --- a/usr/src/dkms_source_tree/hid-input.c +++ b/usr/src/dkms_source_tree/hid-input.c | |||
| @@ -829,9 +829,20 @@ static void hidinput_close(struct input_dev *dev) | |||
| 829 | 829 | ||
| 830 | static void report_features(struct hid_device *hid) | 830 | static void report_features(struct hid_device *hid) |
| 831 | { | 831 | { |
| 832 | /* no feature report support in this test, since it is in flux */ | 832 | struct hid_driver *drv = hid->driver; |
| 833 | struct hid_report_enum *rep_enum; | ||
| 834 | struct hid_report *rep; | ||
| 835 | int i, j; | ||
| 833 | 836 | ||
| 834 | return; | 837 | if (!drv->feature_mapping) |
| 838 | return; | ||
| 839 | |||
| 840 | rep_enum = &hid->report_enum[HID_FEATURE_REPORT]; | ||
| 841 | list_for_each_entry(rep, &rep_enum->report_list, list) | ||
| 842 | for (i = 0; i < rep->maxfield; i++) | ||
| 843 | for (j = 0; j < rep->field[i]->maxusage; j++) | ||
| 844 | drv->feature_mapping(hid, rep->field[i], | ||
| 845 | rep->field[i]->usage + j); | ||
| 835 | } | 846 | } |
| 836 | 847 | ||
| 837 | /* | 848 | /* |
