iio: light: bu27008: Fix intensity data type
authorMatti Vaittinen <mazziesaccount@gmail.com>
Tue, 13 Jun 2023 09:35:12 +0000 (12:35 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 15 Jul 2023 17:02:02 +0000 (18:02 +0100)
commit95fb1e7b23bc82130016daefa02a87e83185ca95
treee5d5ae46b5ce200b4297763b28b0ef8a317c8c5f
parent096649cd7cb0fc1c8f684829f816d938ad1eb808
iio: light: bu27008: Fix intensity data type

The intensity data from bu27008 is unsigned. The type of the scan data
was incorrectly marked as signed resulting large intensity values to be
interpreted as negative ones.

Fix the scan data type.

Fixes: 41ff93d14f78 ("iio: light: ROHM BU27008 color sensor")
Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://lore.kernel.org/r/240a7ca5fc1b76da20d81f930d00f31a54b1fdf8.1686648422.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/rohm-bu27008.c