]> git.baikalelectronics.ru Git - kernel.git/commit
iio: cm32181: Change cm32181 ambient light sensor driver
authorBeomho Seo <beomho.seo@samsung.com>
Fri, 14 Feb 2014 10:04:00 +0000 (10:04 +0000)
committerJonathan Cameron <jic23@kernel.org>
Tue, 18 Feb 2014 10:22:30 +0000 (10:22 +0000)
commit568ed8d40fb1dd7bb9060e55142c26262b8266da
tree58aff3fee62dd2c8c7ac9fa3339ca2b0fcbf8e2b
parent08c196a2b25f41063ce4ce500f0cc3b3a14a0e25
iio: cm32181: Change cm32181 ambient light sensor driver

Integration time of cm32181 is guessed about milliseconds.
But cm32181_read_als_it function return IIO_VAL_INT.
So fixed to return IIO_VAL_INT_PLUS_MICRO.
Next, add .write_raw_get_fmt callback function for call iio_str_to_fixpoint.

v2: cm32181_write_als_id function fixed as it was.

Cc: Kevin Tsai <ktsai@capellamicro.com>
Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/cm32181.c