linux/drivers/iio/magnetometer
Ooi, Joyce 6f771d0b33 iio: magnetometer: separate the values of attributes based on their usage type for HID compass sensor
There are 2 usage types (Magnetic Flux and Heading data field) for HID
compass sensor, thus the values of offset, scale, and sensitivity should
be separated according to their respective usage type. The changes made
are as below:
1. Hysteresis: A struct hid_sensor_common rot_attributes is created in
struct magn_3d_state to contain the sensitivity for IIO_ROT.
2. Scale: scale_pre_decml and scale_post_decml are separated for IIO_MAGN
and IIO_ROT.
3. Offset: Same as scale, value_offset is separated for IIO_MAGN and
IIO_ROT.

For sensitivity, HID_USAGE_SENSOR_ORIENT_MAGN_FLUX and
HID_USAGE_SENSOR_ORIENT_MAGN_HEADING are used for sensivitity fields based
on the HID Sensor Usages specifications. Hence, these changes are added on
the sensitivity field.

Signed-off-by: Ooi, Joyce <joyce.ooi@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-11-24 20:41:30 +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
bmc150_magn_spi.c
bmc150_magn.c
bmc150_magn.h
hid-sensor-magn-3d.c iio: magnetometer: separate the values of attributes based on their usage type for HID compass sensor 2016-11-24 20:41:30 +00:00
hmc5843_core.c
hmc5843_i2c.c
hmc5843_spi.c
hmc5843.h
Kconfig
mag3110.c
Makefile
mmc35240.c
st_magn_buffer.c
st_magn_core.c iio: magn: st_magn: inline per-sensor data 2016-11-12 15:45:37 +00:00
st_magn_i2c.c
st_magn_spi.c
st_magn.h