HID: huion: Fix sparse warnings
authorNikolai Kondrashov <spbnick@gmail.com>
Tue, 29 Jul 2014 12:50:06 +0000 (15:50 +0300)
committerJiri Kosina <jkosina@suse.cz>
Tue, 29 Jul 2014 13:07:08 +0000 (15:07 +0200)
commitf20f6eccffcbc0d46d7b70624fea75ac5c970c47
tree6151173a706b7049d9d15bab6b59fbaf46004768
parent3f1f333232fa3c36bbf20de1c6ffefcc96892d07
HID: huion: Fix sparse warnings

Fix sparse warnings in hid-huion.c by using correct buffer type for
retrieved string descriptor.

The warnings in question were:

    drivers/hid/hid-huion.c:144:44: sparse: cast to restricted __le16
    drivers/hid/hid-huion.c:145:44: sparse: cast to restricted __le16
    drivers/hid/hid-huion.c:146:51: sparse: cast to restricted __le16
    drivers/hid/hid-huion.c:147:30: sparse: cast to restricted __le16

Reported-by: fengguang.wu@intel.com
Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-huion.c