summaryrefslogtreecommitdiff
path: root/drivers/parport/parport_pc.c
diff options
context:
space:
mode:
authorBeomho Seo <beomho.seo@samsung.com>2014-04-02 09:15:00 +0100
committerJonathan Cameron <jic23@kernel.org>2014-02-08 10:28:05 +0000
commitbef44abccb2677e8d16e50b75316d4fd1061be81 (patch)
tree01e79f0cd6e4b5d04e29f8887f858d46b1b2301b /drivers/parport/parport_pc.c
parentd180371d412627a10dc31d675ef8bc777567df09 (diff)
iio: ak8975: Fix calculation formula for convert micro tesla to gauss unit
This effects the reported scale of the raw values, and thus userspace applications that use this value. One micro tesla equal 0.01 gauss. So I have fixed calculation formula And add RAW_TO_GAUSS macro. ASA is in the range of 0 to 255. If multiply 0.003, calculation result(in_magn_[*]_scale) is always 0. So multiply 3000 and return and IIO_VAL_INT_PLUS_MICRO. As a result, read_raw call back function return accurate scale value. Signed-off-by: Beomho Seo <beomho.seo@samsung.com> Cc: stable@vger.kernel.org Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/parport/parport_pc.c')
0 files changed, 0 insertions, 0 deletions