diff options
author | Aaron Ma <aaron.ma@canonical.com> | 2018-02-03 18:57:15 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-24 10:36:28 +0300 |
commit | f671ac7a5317edddcc8d4593bae3ea1dde5334ed (patch) | |
tree | 6e2ccb077ed299c4a6aa974d13fdd81114700057 /drivers/hid/hid-input.c | |
parent | 25b6ee378dc43fff21e778f1a21cb7e6dffa6e1a (diff) | |
download | linux-f671ac7a5317edddcc8d4593bae3ea1dde5334ed.tar.xz |
HID: Fix hid_report_len usage
commit 3064a03b94e60388f0955fcc29f3e8a978d28f75 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r-- | drivers/hid/hid-input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 199f6a01fc62..44f20aac018d 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -1359,7 +1359,8 @@ static void hidinput_led_worker(struct work_struct *work) led_work); struct hid_field *field; struct hid_report *report; - int len, ret; + int ret; + u32 len; __u8 *buf; field = hidinput_get_led_field(hid); |