linux/drivers/iio/humidity
Hartmut Knaack 345b48307d iio:humidity:si7020: cleanup read_raw and probe
When reading temperature or humidity values, a shift of two bits to the right
needs to be applied, and only for the humidity channel a mask of the lower
12 bits needs to be applied. This reduces code repetition.
During probe, i2c_set_clientdata() was used, although its counterpart was not,
so drop it.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2014-10-25 20:55:56 +01:00
..
dht11.c iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
Kconfig IIO: add si7020 driver 2014-10-04 12:43:30 +01:00
Makefile IIO: add si7020 driver 2014-10-04 12:43:30 +01:00
si7005.c
si7020.c iio:humidity:si7020: cleanup read_raw and probe 2014-10-25 20:55:56 +01:00