linux_dsm_epyc7002/drivers/iio/chemical
Jonathan Cameron 78b75ab3f8 iio: chemical: sps30: Explicity truncate constant by masking
When breaking up a constant to write to two 8 bit registers
it isn't obvious to sparse that it was intentional.

CHECK   drivers/iio/chemical/sps30.c
drivers/iio/chemical/sps30.c:120:30: warning: cast truncates bits from constant value (8004 becomes 4)

So in the interests of minimising noisy warnings, let us add
a mask.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Tomasz Duszynski <tduszyns@gmail.com>
2019-10-18 19:52:03 +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: fix iio_triggered_buffer_predisable() position 2019-10-13 08:53:34 +01:00
bme680_core.c iio:chemical:bme680: Fix SPI read interface 2019-03-09 17:27:36 +00:00
bme680_i2c.c iio:chemical:bme680: Fix SPI read interface 2019-03-09 17:27:36 +00:00
bme680_spi.c iio:chemical:bme680: Fix SPI read interface 2019-03-09 17:27:36 +00:00
bme680.h iio:chemical:bme680: Fix SPI read interface 2019-03-09 17:27:36 +00:00
ccs811.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
pms7003.c iio: chemical: pms7003: extend supported sensors list 2019-04-04 20:19:40 +01:00
sgp30.c iio: chemical: sgp30: Support Sensirion SGP30/SGPC3 sensors 2018-12-16 14:05:58 +00:00
sps30.c iio: chemical: sps30: Explicity truncate constant by masking 2019-10-18 19:52:03 +01:00
vz89x.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00