Re: [PATCH] iio: light: acpi-als: Add IO_CHAN_INFO_OFFSET/SCALE to mask.

2016-10-22 Thread Jonathan Cameron
On 21/10/16 17:43, Gwendal Grignou wrote: > On Fri, Oct 21, 2016 at 1:17 AM, Enric Balletbo i Serra > wrote: >> According the ACPI specification (Version 5.0 Errata A) [1], the data >> coming from the sensor represent the ambient light illuminance reading >> expressed in lux. Unfortunately ACPI in

Re: [PATCH] iio: light: acpi-als: Add IO_CHAN_INFO_OFFSET/SCALE to mask.

2016-10-21 Thread Gwendal Grignou
On Fri, Oct 21, 2016 at 1:17 AM, Enric Balletbo i Serra wrote: > According the ACPI specification (Version 5.0 Errata A) [1], the data > coming from the sensor represent the ambient light illuminance reading > expressed in lux. Unfortunately ACPI interface doesn't provide a > mechanism to calibrat

[PATCH] iio: light: acpi-als: Add IO_CHAN_INFO_OFFSET/SCALE to mask.

2016-10-21 Thread Enric Balletbo i Serra
According the ACPI specification (Version 5.0 Errata A) [1], the data coming from the sensor represent the ambient light illuminance reading expressed in lux. Unfortunately ACPI interface doesn't provide a mechanism to calibrate this value, so this raw value can be slightly wrong. This patch adds