HID: wacom: Fix several minor compiler warnings
authorJason Gerecke <killertofu@gmail.com>
Fri, 16 Aug 2019 18:54:26 +0000 (11:54 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 20 Aug 2019 14:57:31 +0000 (16:57 +0200)
commit073b50bccbbf99a3b79a1913604c656d0e1a56c9
treeb6a8af1d8fe0c576b287efea7e22c891232a7792
parentf4eb1423e43376bec578c5696635b074c8bd2035
HID: wacom: Fix several minor compiler warnings

Addresses a few issues that were noticed when compiling with non-default
warnings enabled. The trimmed-down warnings in the order they are fixed
below are:

* declaration of 'size' shadows a parameter

* '%s' directive output may be truncated writing up to 5 bytes into a
  region of size between 1 and 64

* pointer targets in initialization of 'char *' from 'unsigned char *'
  differ in signedness

* left shift of negative value

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Aaron Armstrong Skomra <aaron.skomra@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c
drivers/hid/wacom_wac.c