summaryrefslogtreecommitdiffstats
path: root/drivers/hid/wacom_sys.c
diff options
context:
space:
mode:
authorAaron Ma <aaron.ma@canonical.com>2018-02-03 16:57:15 +0100
committerJiri Kosina <jkosina@suse.cz>2018-02-16 13:30:56 +0100
commit3064a03b94e60388f0955fcc29f3e8a978d28f75 (patch)
treeaa533760ffce91785050d48be73e287043dd47f9 /drivers/hid/wacom_sys.c
parentHID: core: Fix size as type u32 (diff)
downloadlinux-3064a03b94e60388f0955fcc29f3e8a978d28f75.tar.xz
linux-3064a03b94e60388f0955fcc29f3e8a978d28f75.zip
HID: Fix hid_report_len usage
Follow the change of return type u32 of hid_report_len, fix all the types of variables those get the return value of hid_report_len to u32, and all other code already uses u32. Cc: stable@vger.kernel.org Signed-off-by: Aaron Ma <aaron.ma@canonical.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/wacom_sys.c')
-rw-r--r--drivers/hid/wacom_sys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c
index 409543160af7..b54ef1ffcbec 100644
--- a/drivers/hid/wacom_sys.c
+++ b/drivers/hid/wacom_sys.c
@@ -219,7 +219,7 @@ static void wacom_feature_mapping(struct hid_device *hdev,
unsigned int equivalent_usage = wacom_equivalent_usage(usage->hid);
u8 *data;
int ret;
- int n;
+ u32 n;
switch (equivalent_usage) {
case HID_DG_CONTACTMAX:
@@ -519,7 +519,7 @@ static int wacom_set_device_mode(struct hid_device *hdev,
u8 *rep_data;
struct hid_report *r;
struct hid_report_enum *re;
- int length;
+ u32 length;
int error = -ENOMEM, limit = 0;
if (wacom_wac->mode_report < 0)