diff options
| author | Linus Walleij <linus.walleij@linaro.org> | 2016-09-01 11:44:35 +0200 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:58:27 +0200 |
| commit | 3fe9195484a4214b733dfec12c45ba0cbeaa0173 (patch) | |
| tree | 5a864539dec389ea50507cbae339017704249c23 /include/linux/memory_hotplug.h | |
| parent | c1dad7e7efff5e792351b75b6f6d11449869d106 (diff) | |
iio: accel: kxsd9: Fix scaling bug
commit 307fe9dd11ae44d4f8881ee449a7cbac36e1f5de upstream.
All the scaling of the KXSD9 involves multiplication with a
fraction number < 1.
However the scaling value returned from IIO_INFO_SCALE was
unpredictable as only the micros of the value was assigned, and
not the integer part, resulting in scaling like this:
$cat in_accel_scale
-1057462640.011978
Fix this by assigning zero to the integer part.
Tested-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include/linux/memory_hotplug.h')
0 files changed, 0 insertions, 0 deletions
