]> git.baikalelectronics.ru Git - kernel.git/commit
iio: cm36651: Fix read/write integration time function.
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:29 +0000 (10:22 +0000)
commit08c196a2b25f41063ce4ce500f0cc3b3a14a0e25
tree47bc3559cdf8c8e9d51dc889c4dbb5c4762737e1
parent924585e498ab127612c2cc16fcea79ed8c013684
iio: cm36651: Fix read/write integration time function.

This patch is fixed [read/write] integration time function.
cm36651 have integration time from 1 to 640 milliseconds.
But, print more then the thousand second. when call *_integration_time attribute.
Because read_integration_time function return IIO_VAL_INT.
read integration time function is changed return IIO_VAL_INT_PLUS_MICRO;
And then .write_raw_get_fmt callback function for parse a fixed-point number from a string.
Some description is revised milliseconds unit.

v2: cm36651_write_int_time function fixed as it was.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/cm36651.c