iio: ltr501: Add light channel support
authorKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Sat, 16 May 2015 01:23:21 +0000 (18:23 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 17 May 2015 08:14:10 +0000 (09:14 +0100)
commitc06cee8d0865b7478484d9472155d8df83a10c06
treee42f2d274e434175c19b21e00929b578b315aeae
parentc24e7daf823256c83ce3efe6fa9b9b8ab5b78480
iio: ltr501: Add light channel support

Added support to calculate lux value from visible
and IR spectrum adc count values. Also added IIO_LIGHT
channel to enable user read the lux value directly
from device using illuminance input ABI.

Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/ltr501.c