From: Beomho Seo Date: Fri, 14 Feb 2014 10:04:00 +0000 (+0000) Subject: iio: cm36651: Fix read/write integration time function. X-Git-Tag: v3.14-rc5~4^2^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26c17a1c56f957560cb96d219c13d21dfb605819;p=pandora-kernel.git 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 Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed