diff options
author | Stefan Achatz <erazor_de@users.sourceforge.net> | 2011-01-30 07:38:25 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-02-03 10:37:28 -0500 |
commit | 8211e46004518c977f70f2661da961d5ba617399 (patch) | |
tree | b2ae1cdc75fad9dbdece7b1dd5fc23ce0624f3c2 /drivers/hid/hid-roccat-kovaplus.c | |
parent | 432762e28b8146d0feff61cc8063b26c517acf26 (diff) |
HID: roccat: Add ioctl command to retreive report size from chardev
Roccat chardev was reworked to support only a defined report size per
device and this can be retreived by an ioctl now to enable future changes
in report definitions.
Header was moved/renamed from drivers/hid to include/linux for accessibility.
Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-roccat-kovaplus.c')
-rw-r--r-- | drivers/hid/hid-roccat-kovaplus.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/hid/hid-roccat-kovaplus.c b/drivers/hid/hid-roccat-kovaplus.c index 1f547a2b39de..7664e2ce2886 100644 --- a/drivers/hid/hid-roccat-kovaplus.c +++ b/drivers/hid/hid-roccat-kovaplus.c | |||
@@ -20,8 +20,8 @@ | |||
20 | #include <linux/hid.h> | 20 | #include <linux/hid.h> |
21 | #include <linux/module.h> | 21 | #include <linux/module.h> |
22 | #include <linux/slab.h> | 22 | #include <linux/slab.h> |
23 | #include <linux/roccat.h> | ||
23 | #include "hid-ids.h" | 24 | #include "hid-ids.h" |
24 | #include "hid-roccat.h" | ||
25 | #include "hid-roccat-common.h" | 25 | #include "hid-roccat-common.h" |
26 | #include "hid-roccat-kovaplus.h" | 26 | #include "hid-roccat-kovaplus.h" |
27 | 27 | ||
@@ -524,7 +524,8 @@ static int kovaplus_init_specials(struct hid_device *hdev) | |||
524 | goto exit_free; | 524 | goto exit_free; |
525 | } | 525 | } |
526 | 526 | ||
527 | retval = roccat_connect(kovaplus_class, hdev); | 527 | retval = roccat_connect(kovaplus_class, hdev, |
528 | sizeof(struct kovaplus_roccat_report)); | ||
528 | if (retval < 0) { | 529 | if (retval < 0) { |
529 | hid_err(hdev, "couldn't init char dev\n"); | 530 | hid_err(hdev, "couldn't init char dev\n"); |
530 | } else { | 531 | } else { |
@@ -648,8 +649,7 @@ static void kovaplus_report_to_chrdev(struct kovaplus_device const *kovaplus, | |||
648 | roccat_report.data2 = button_report->data2; | 649 | roccat_report.data2 = button_report->data2; |
649 | 650 | ||
650 | roccat_report_event(kovaplus->chrdev_minor, | 651 | roccat_report_event(kovaplus->chrdev_minor, |
651 | (uint8_t const *)&roccat_report, | 652 | (uint8_t const *)&roccat_report); |
652 | sizeof(struct kovaplus_roccat_report)); | ||
653 | } | 653 | } |
654 | 654 | ||
655 | static int kovaplus_raw_event(struct hid_device *hdev, | 655 | static int kovaplus_raw_event(struct hid_device *hdev, |