iio: light: cm32181: Make lux_per_bit and lux_per_bit_base_it runtime settings
authorHans de Goede <hdegoede@redhat.com>
Tue, 28 Apr 2020 17:29:21 +0000 (19:29 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 10 May 2020 09:46:02 +0000 (10:46 +0100)
commit63b1be78774f8c3bdb9efd862ba7dfe8e2c056ff
tree5e19cc70b2b2eaa237dea6935cf5e3d1e0931bc9
parentf50f98310e51b3712a4e544c75615e89c8233125
iio: light: cm32181: Make lux_per_bit and lux_per_bit_base_it runtime settings

Make lux_per_bit and lux_per_bit_base_it settings stored in struct
cm32181_chip instead of a hardcoded (defined) values.

This is a preparation patch for reading some ACPI tables which specify
a device specific lux_per_bit value.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/cm32181.c