commit | 892e62fab4983656d3ca5df4e83fdf2b496c06e4 | [log] [tgz] |
---|---|---|
author | Himanshu Jha <himanshujha199640@gmail.com> | Sat Aug 11 15:56:36 2018 +0530 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sun Aug 19 20:07:25 2018 +0100 |
tree | ae9ed0ca9d8c9cf9012f34ac5bbc2561e8d9205b | |
parent | 010de20412fc40dabfbab926358ecd9c4486dd0d [diff] |
iio: chemical: bme680: Add check for val2 in the write_raw function val2 is responsible for the floating part of the number to be written to the device. We don't need the floating part while writing the oversampling ratio for BME680 since the available oversampling ratios are pure natural numbers. So, add a sanity check to make sure val2 is 0. Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>