linux/drivers/iio/magnetometer
Linus Walleij 57d0355451 iio: magn: st_magn: 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:45:37 +00:00
..
ak8974.c iio: magnetometer: ak8974: small endianness fixes 2016-10-03 21:30:00 +01:00
ak8975.c drivers: iio: magnetometer: Fix sparse endianness warnings cast to restricted __be16 2016-09-27 21:08:45 +01:00
bmc150_magn_i2c.c iio: magn: Add support for BMM150 magnetometer 2016-05-21 17:37:21 +01:00
bmc150_magn_spi.c iio: magn: Add support for BMM150 magnetometer 2016-05-21 17:37:21 +01:00
bmc150_magn.c iio: magn: Split bmc150 driver in common/i2c parts 2016-04-18 20:44:40 +01:00
bmc150_magn.h iio: magn: Split bmc150 driver in common/i2c parts 2016-04-18 20:44:40 +01:00
hid-sensor-magn-3d.c iio: hid-sensor-magn-3d: Constify platform_device_id 2015-05-10 20:31:47 +01:00
hmc5843_core.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
hmc5843_i2c.c iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
hmc5843_spi.c iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
hmc5843.h iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
Kconfig iio: magn: add a driver for AK8974 2016-08-15 16:49:39 +01:00
mag3110.c iio: magnetometer: mag3110: claim direct mode during raw reads 2016-08-21 19:37:35 +01:00
Makefile iio: magn: add a driver for AK8974 2016-08-15 16:49:39 +01:00
mmc35240.c Second set of new device support, features and cleanup for the 4.3 cycle. 2015-08-12 12:43:41 -07:00
st_magn_buffer.c iio: st_sensors: switch to a threaded interrupt 2016-05-29 20:21:41 +01:00
st_magn_core.c iio: magn: st_magn: inline per-sensor data 2016-11-12 15:45:37 +00:00
st_magn_i2c.c iio: st-magn: add support for lsm303agr magnetometer 2015-07-23 20:43:27 +01:00
st_magn_spi.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
st_magn.h iio: st_magn: always define ST_MAGN_TRIGGER_SET_STATE 2016-04-03 10:56:42 +01:00