staging: iio: ad2s1200: Add scaling factor for angular velocity channel
authorDavid Veenstra <davidjulianveenstra@gmail.com>
Fri, 18 May 2018 18:23:01 +0000 (20:23 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 20 May 2018 11:07:29 +0000 (12:07 +0100)
commitd3e6ed841671de3b25776b5e91f33112e8f5bca6
tree63ef8354ab2eb33c643255b142d29e9dbdc57a3e
parent2363c010ce65a68a4a9bcc27c99b7b5e1a478b8a
staging: iio: ad2s1200: Add scaling factor for angular velocity channel

The sysfs iio ABI states radians per second is expected as the unit for
angular velocity, but the 12-bit angular velocity register has
revolution per seconds as its unit. So a scaling factor of approximately
2 * Pi is added to the angular velocity channel.

Signed-off-by: David Veenstra <davidjulianveenstra@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/resolver/ad2s1200.c