]> git.baikalelectronics.ru Git - kernel.git/commit
iio: tsl2583: correct values in integration_time_available
authorBrian Masney <masneyb@onstation.org>
Sun, 13 May 2018 00:20:39 +0000 (20:20 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 20 May 2018 09:29:28 +0000 (10:29 +0100)
commit53fbd2d334ff19ecf872def555724dc2c4ad3f14
tree07dd7442e067c70f059c4370d37f6a6570dea1a8
parentafcf2416011941d9f6b92e76a5a11b846d0624cc
iio: tsl2583: correct values in integration_time_available

The times reported by the in_illuminance_integration_time_available
sysfs attribute are actually in milliseconds, not microseconds. This
patch corrects the times with the correct unit.

The fixes tag is inaccurate as the issue existed when the driver
was still in staging.   However, lots of changes occured before
it graduated so this is as a good a point as any for backports.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Fixes: 4e97430d6a08 ("staging: iio: tsl2583: move out of staging")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/tsl2583.c