linux_dsm_epyc7002/drivers/iio/chemical
Himanshu Jha 892e62fab4 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>
2018-08-19 20:07:25 +01:00
..
ams-iaq-core.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00
atlas-ph-sensor.c iio: chemical: atlas-ph-sensor: use msleep() for long uncritical delays 2018-04-15 18:37:26 +01:00
bme680_core.c iio: chemical: bme680: Add check for val2 in the write_raw function 2018-08-19 20:07:25 +01:00
bme680_i2c.c iio: chemical: Add support for Bosch BME680 sensor 2018-07-28 11:38:46 +01:00
bme680_spi.c iio: chemical: Add support for Bosch BME680 sensor 2018-07-28 11:38:46 +01:00
bme680.h iio: chemical: bme680: use GENMASK macro 2018-08-19 17:06:53 +01:00
ccs811.c Merge 4.16-rc7 into staging-next 2018-03-28 13:33:37 +02:00
Kconfig iio: chemical: Add support for Bosch BME680 sensor 2018-07-28 11:38:46 +01:00
Makefile iio: chemical: Add support for Bosch BME680 sensor 2018-07-28 11:38:46 +01:00
vz89x.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00