linux_dsm_epyc7002/drivers/iio/accel
Linus Walleij 9049531c91 iio: accel: st_accel: 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.

Cc: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-11-19 12:25:36 +00:00
..
bma180.c iio: accel: bma180: use iio helper function to guarantee direct mode 2016-08-15 17:12:43 +01:00
bma220_spi.c iio: accel: bma220_spi: set up buffer timestamps for non-zero values 2016-08-15 15:39:18 +01:00
bmc150-accel-core.c iio: accel: bmc150: reset chip at init time 2016-09-03 17:26:14 +01:00
bmc150-accel-i2c.c iio: accel: bmc150: use common definition for regmap conf 2016-04-03 11:24:52 +01:00
bmc150-accel-spi.c iio: accel: bmc150: use common definition for regmap conf 2016-04-03 11:24:52 +01:00
bmc150-accel.h iio: accel: bmc150: use common definition for regmap conf 2016-04-03 11:24:52 +01:00
da280.c iio: accel: Add driver for the MiraMEMS DA280 3-axis 14-bit digital accelerometer 2016-10-11 19:40:15 +01:00
da311.c iio: accel: Add driver for the MiraMEMS DA311 3-axis 12-bit digital accelerometer 2016-10-11 19:39:14 +01:00
dmard06.c iio: accel: Add support for Domintech DMARD06 accelerometer 2016-08-21 10:52:02 +01:00
dmard09.c iio: accel: add support for the Domintech DMARD09 3-axis accelerometer 2016-08-21 10:52:08 +01:00
dmard10.c iio: accel: Add driver for dmard10 3-axis Accelerometer 2016-10-11 19:38:32 +01:00
hid-sensor-accel-3d.c iio: accel: hid-sensor-accel-3d: Fix memory leak in probe() 2015-05-17 09:09:05 +01:00
Kconfig iio: accel: st_accel: add support to lng2dm 2016-11-01 18:50:02 +00:00
kxcjk-1013.c iio: accel: kxcjk-1013: add the "KIOX000A" ACPI id 2016-07-24 19:58:40 +01:00
kxsd9-i2c.c iio: accel: kxsd9: Deploy system and runtime PM 2016-09-18 11:35:59 +01:00
kxsd9-spi.c iio: accel: kxsd9: Deploy system and runtime PM 2016-09-18 11:35:59 +01:00
kxsd9.c iio: accel: kxsd9: Support reading a mounting matrix 2016-09-18 11:36:32 +01:00
kxsd9.h iio: accel: kxsd9: Deploy system and runtime PM 2016-09-18 11:35:59 +01:00
Makefile staging:iio:accel:sca3000 Move out of staging. 2016-10-23 19:34:07 +01:00
mc3230.c iio: accel: Add driver for the mCube MC3230 3-axis accelerometer 2016-09-18 13:25:38 +01:00
mma7455_core.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
mma7455_i2c.c iio: accel: add Freescale MMA7455L/MMA7456L 3-axis accelerometer driver 2015-11-01 18:00:35 +00:00
mma7455_spi.c iio: accel: add Freescale MMA7455L/MMA7456L 3-axis accelerometer driver 2015-11-01 18:00:35 +00:00
mma7455.h iio: accel: add Freescale MMA7455L/MMA7456L 3-axis accelerometer driver 2015-11-01 18:00:35 +00:00
mma7660.c iio: accel: mma7660: fix non static symbol warning 2016-09-24 16:25:34 +01:00
mma8452.c iio: accel: mma8452: claim direct mode during write raw 2016-10-23 19:33:54 +01:00
mma9551_core.c iio: accel: mma9553: fix alignment issues 2015-06-14 16:00:54 +01:00
mma9551_core.h iio: accel: mma9553: fix alignment issues 2015-06-14 16:00:54 +01:00
mma9551.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
mma9553.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
mxc4005.c iio: remove gpio interrupt probing from drivers that use a single interrupt 2016-04-03 10:27:48 +01:00
mxc6255.c iio: accel: mxc6255: Fix chip-id check 2016-09-12 20:19:16 +01:00
sca3000.c staging:iio:accel:sca3000 Move out of staging. 2016-10-23 19:34:07 +01:00
ssp_accel_sensor.c iio: common: ssp_sensors: accel: constify iio_info structures 2016-09-18 11:56:08 +01:00
st_accel_buffer.c iio: st_sensors: switch to a threaded interrupt 2016-05-29 20:21:41 +01:00
st_accel_core.c iio: accel: st_accel: inline per-sensor data 2016-11-19 12:25:36 +00:00
st_accel_i2c.c iio: accel: st_accel: add support to lng2dm 2016-11-01 18:50:02 +00:00
st_accel_spi.c iio: accel: st_accel: add support to lng2dm 2016-11-01 18:50:02 +00:00
st_accel.h iio: accel: st_accel: add support to lng2dm 2016-11-01 18:50:02 +00:00
stk8ba50.c iio: remove unused gpio consumer.h include 2016-04-03 10:27:47 +01:00
stk8312.c iio: remove unused gpio consumer.h include 2016-04-03 10:27:47 +01:00