linux/drivers/iio/pressure
Linus Walleij 91a86a3b89 iio: pressure: st_pressure: inline per-sensor data
We have #defines for all the individual sensor registers and
value/mask pairs #defined at the top of the file and used at
exactly one spot.

This is usually good if the #defines give a meaning to the
opaque magic numbers.

However in this case, the semantic meaning is inherent in the
name of the C99-addressable fields, and that means duplication
of information, and only makes the code hard to maintain since
you every time have to add a new #define AND update the site
where it is to be used.

Get rid of the #defines and just open code the values into the
appropriate struct elements. Make sure to explicitly address
the .hz and .value fields in the st_sensor_odr_avl struct
so that the meaning of all values is clear.

This patch is purely syntactic should have no semantic effect.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-11-12 15:50:10 +00:00
..
abp060mg.c
bmp280-core.c
bmp280-i2c.c
bmp280-regmap.c
bmp280-spi.c
bmp280.h
hid-sensor-press.c
hp03.c
hp206c.c
Kconfig First round of IIO new device support, features and cleanups for the 4.10 cycle. 2016-10-24 11:34:22 +02:00
Makefile
mpl115_i2c.c
mpl115_spi.c
mpl115.c
mpl115.h
mpl3115.c iio: pressure: mpl3115: claim direct mode during raw reads 2016-10-23 19:33:55 +01:00
ms5611_core.c
ms5611_i2c.c
ms5611_spi.c
ms5611.h
ms5637.c
st_pressure_buffer.c
st_pressure_core.c iio: pressure: st_pressure: inline per-sensor data 2016-11-12 15:50:10 +00:00
st_pressure_i2c.c
st_pressure_spi.c
st_pressure.h
t5403.c
zpa2326_i2c.c
zpa2326_spi.c
zpa2326.c
zpa2326.h