alistair23-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.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
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
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.h iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00: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
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.h iio: st_magn: always define ST_MAGN_TRIGGER_SET_STATE 2016-04-03 10:56:42 +01: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