original_kernel/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
..
Kconfig
Makefile
ak8974.c
ak8975.c
bmc150_magn.c
bmc150_magn.h
bmc150_magn_i2c.c
bmc150_magn_spi.c
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
hmc5843_core.c
hmc5843_i2c.c
hmc5843_spi.c
mag3110.c
mmc35240.c
st_magn.h
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