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 iio: pressure: Add driver for Honeywell ABP family 2016-10-01 15:14:37 +01:00
bmp280-core.c iio: pressure: bmp280: fix runtime suspend/resume crash 2016-08-15 15:46:06 +01:00
bmp280-i2c.c iio: pressure: bmp280: add power management 2016-07-03 11:32:14 +01:00
bmp280-regmap.c iio: pressure: bmp280: split off an I2C Kconfig entry 2016-07-03 11:27:14 +01:00
bmp280-spi.c iio: pressure: bmp280: add power management 2016-07-03 11:32:14 +01:00
bmp280.h iio: pressure: bmp280: add power management 2016-07-03 11:32:14 +01:00
hid-sensor-press.c
hp03.c iio: pressure: hp03: Add Hope RF HP03 sensor support 2016-04-24 09:46:14 +01:00
hp206c.c iio: Export I2C module alias information 2016-05-21 20:08:14 +01:00
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 iio: pressure: Add driver for Honeywell ABP family 2016-10-01 15:14:37 +01:00
mpl115_i2c.c iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
mpl115_spi.c iio: pressure: mpl115: support MPL115A1 2016-01-30 16:27:12 +00:00
mpl115.c Merge 4.5-rc3 into staging-next 2016-02-07 17:34:04 -08:00
mpl115.h iio: pressure: mpl115: support MPL115A1 2016-01-30 16:27:12 +00:00
mpl3115.c iio: pressure: mpl3115: claim direct mode during raw reads 2016-10-23 19:33:55 +01:00
ms5611_core.c iio: ms65611_core: Fixes dereferencing regulator pointer 2016-10-23 19:33:50 +01:00
ms5611_i2c.c iio:pressure:ms5611: oversampling rate support 2016-03-05 14:45:14 +00:00
ms5611_spi.c iio: pressure: ms5611: use tab for indention 2016-04-16 13:39:28 +01:00
ms5611.h iio:pressure:ms5611: fix missing regulator_disable 2016-03-20 11:02:40 +00:00
ms5637.c iio: ms5637 Add Measurement Specialties explicit MS5805 and MS5837 support 2016-06-11 17:27:52 +01:00
st_pressure_buffer.c iio: st_sensors: switch to a threaded interrupt 2016-05-29 20:21:41 +01:00
st_pressure_core.c iio: pressure: st_pressure: inline per-sensor data 2016-11-12 15:50:10 +00:00
st_pressure_i2c.c iio:st_pressure:initial lps22hb sensor support 2016-05-29 15:02:14 +01:00
st_pressure_spi.c iio:st_pressure:initial lps22hb sensor support 2016-05-29 15:02:14 +01:00
st_pressure.h iio:st_pressure:initial lps22hb sensor support 2016-05-29 15:02:14 +01:00
t5403.c iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
zpa2326_i2c.c iio:pressure: initial zpa2326 barometer support 2016-09-18 19:42:21 +01:00
zpa2326_spi.c iio:pressure: initial zpa2326 barometer support 2016-09-18 19:42:21 +01:00
zpa2326.c iio:pressure: zpa2326: remove redundant "DEBUG" ifdef 2016-09-22 18:43:59 +01:00
zpa2326.h iio:pressure: initial zpa2326 barometer support 2016-09-18 19:42:21 +01:00