staging: iio: tsl2583: don't assume an unsigned int is 32 bits
authorBrian Masney <masneyb@onstation.org>
Sat, 12 Nov 2016 18:19:33 +0000 (13:19 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 13 Nov 2016 13:07:28 +0000 (13:07 +0000)
commit8386dd50a7d22bf42a412cfd7b1d24b08c1065ea
tree1a8c29e34af19e558400223a83fc5aca3f916f1f
parent1ad513604fe9112793b4ae66d873757a8a6d3058
staging: iio: tsl2583: don't assume an unsigned int is 32 bits

in_illuminance_lux_table_store assumes that an unsigned int is 32 bits.
Replace this with sizeof(value[1]).

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/tsl2583.c