summaryrefslogtreecommitdiff
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorLI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>2022-05-26 13:33:54 +0000
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-06-11 14:35:28 +0100
commit733147729a9103f337569e07706f208535f3c707 (patch)
treee53345766cc8da3635cc658674c246c5c2ce845c /fs/namespace.c
parentf0ca36b031f634214b39648b1b6a9b9a33998144 (diff)
iio: accel: bmi088: Modified the scale calculate
The units after application of scale are 100*m/s^2, The scale calculation is only for the device with the range of 3, 6, 12, and 24g, but some other chips have a range of 2, 4, 6, and 8g. Modified the scales from formula to a list, the scales in the list are calculated as 9.8/32768*pow(2,reg41+1)*1.5, refer to datasheet 5.3.4. The new units after the application of scale are m/s^2. Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com> Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn> Link: https://lore.kernel.org/r/20220526133359.2261928-2-Qing-wu.Li@leica-geosystems.com.cn Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'fs/namespace.c')
0 files changed, 0 insertions, 0 deletions