summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-huion.c
diff options
context:
space:
mode:
authorNikolai Kondrashov <spbnick@gmail.com>2014-07-29 15:50:06 +0300
committerJiri Kosina <jkosina@suse.cz>2014-07-29 15:07:08 +0200
commitf20f6eccffcbc0d46d7b70624fea75ac5c970c47 (patch)
tree6151173a706b7049d9d15bab6b59fbaf46004768 /drivers/hid/hid-huion.c
parent3f1f333232fa3c36bbf20de1c6ffefcc96892d07 (diff)
downloadblackbird-op-linux-f20f6eccffcbc0d46d7b70624fea75ac5c970c47.tar.gz
blackbird-op-linux-f20f6eccffcbc0d46d7b70624fea75ac5c970c47.zip
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>
Diffstat (limited to 'drivers/hid/hid-huion.c')
-rw-r--r--drivers/hid/hid-huion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-huion.c b/drivers/hid/hid-huion.c
index 438b54e147bb..60f44cd1b0ed 100644
--- a/drivers/hid/hid-huion.c
+++ b/drivers/hid/hid-huion.c
@@ -115,7 +115,7 @@ static int huion_tablet_enable(struct hid_device *hdev)
int rc;
struct usb_device *usb_dev = hid_to_usb_dev(hdev);
struct huion_drvdata *drvdata = hid_get_drvdata(hdev);
- u16 buf[6];
+ __le16 buf[6];
/*
* Read string descriptor containing tablet parameters. The specific
OpenPOWER on IntegriCloud