staging: iio: light sensor: Add a calibscale file to the isl29018 light sensor driver.
authorBryan Freed <bfreed@chromium.org>
Tue, 28 Jun 2011 23:46:33 +0000 (16:46 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jul 2011 03:29:17 +0000 (20:29 -0700)
commit6d1ad0f8aa9d3caf6e3f26ad39b43c687abd9c82
tree70ed94defa401d31d618e0f34442286761eef55e
parent03bda05d9ced3a80b2265d9da611c6670840abc7
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>
drivers/staging/iio/Documentation/sysfs-bus-iio-light
drivers/staging/iio/light/isl29018.c