staging: iio: light: isl29018: Use standard sysfs attributes for scale and integratio...
authorRoberta Dobrescu <roberta.dobrescu@gmail.com>
Thu, 16 Apr 2015 19:20:59 +0000 (22:20 +0300)
committerJonathan Cameron <jic23@kernel.org>
Thu, 30 Apr 2015 20:55:35 +0000 (21:55 +0100)
This patch refactors the isl29018 driver code in order to use standard
sysfs attributes for scale and integration time.

ISL29018 light sensor uses four ranges and four ADC's resolutions
which influence the calculated lux. Adc resolution is strongly
connected to integration time and range should be controlled by scale.

This patch introduces the usage of integration time and scale instead
of adc resolution and range.

Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/isl29018.c

Simple merge