iio: bu27034: Fix integration time
authorMatti Vaittinen <mazziesaccount@gmail.com>
Mon, 17 Apr 2023 09:19:57 +0000 (12:19 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 13 May 2023 16:54:57 +0000 (17:54 +0100)
commitb7b04f393ffa1530213f522115e7d77761eb5c4f
tree7fc33beac37b15b009e7ad48fa503849eafcbf81
parent672cde9ef80ffde9e76d38f7aa2b287c4a18de9a
iio: bu27034: Fix integration time

The bu27034 uses micro seconds for integration time configuration. This
is incorrect as the ABI mandates use of seconds.

Change BU27034 driver to use seconds for integration time.

Fixes: e52afbd61039 ("iio: light: ROHM BU27034 Ambient Light Sensor")
Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://lore.kernel.org/r/a05647669af22ba919c7c87dccb43975e3235a87.1681722914.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/rohm-bu27034.c