aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-roccat-kovaplus.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-roccat-kovaplus.c')
-rw-r--r--drivers/hid/hid-roccat-kovaplus.c8
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
655static int kovaplus_raw_event(struct hid_device *hdev, 655static int kovaplus_raw_event(struct hid_device *hdev,