diff options
author | Bryan Freed <bfreed@chromium.org> | 2011-06-28 19:46:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-05 23:29:17 -0400 |
commit | 6d1ad0f8aa9d3caf6e3f26ad39b43c687abd9c82 (patch) | |
tree | 70ed94defa401d31d618e0f34442286761eef55e /drivers/staging/iio/Documentation | |
parent | 03bda05d9ced3a80b2265d9da611c6670840abc7 (diff) |
staging: iio: light sensor: Add a calibscale file to the isl29018 light sensor driver.
Defaulting to 1, this gives a way to amplify the lux value before being
reduced by the programmed adc_bit shift.
Only support whole numbers right now. When this driver is converted to the new
IIO_CHAN framework, it will be easy to support the framework's pseudo float.
Add illuminance0_calibscale documentation to sysfs-bus-iio-light.
Signed-off-by: Bryan Freed <bfreed@chromium.org>
Acked-by: Rhyland Klein <rklein@nvidia.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/Documentation')
-rw-r--r-- | drivers/staging/iio/Documentation/sysfs-bus-iio-light | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/staging/iio/Documentation/sysfs-bus-iio-light b/drivers/staging/iio/Documentation/sysfs-bus-iio-light index 21d27740581..edbf470e4e3 100644 --- a/drivers/staging/iio/Documentation/sysfs-bus-iio-light +++ b/drivers/staging/iio/Documentation/sysfs-bus-iio-light | |||
@@ -75,3 +75,11 @@ KernelVersion: 2.6.37 | |||
75 | Contact: linux-iio@vger.kernel.org | 75 | Contact: linux-iio@vger.kernel.org |
76 | Description: | 76 | Description: |
77 | This property gets/sets the sensors ADC analog integration time. | 77 | This property gets/sets the sensors ADC analog integration time. |
78 | |||
79 | What: /sys/bus/iio/devices/device[n]/illuminance0_calibscale | ||
80 | KernelVersion: 2.6.37 | ||
81 | Contact: linux-iio@vger.kernel.org | ||
82 | Description: | ||
83 | Hardware or software applied calibration scale factor assumed | ||
84 | to account for attenuation due to industrial design (glass | ||
85 | filters or aperture holes). | ||