linux_dsm_epyc7002/drivers/iio
Song Hongyan bba6d9e47f iio: hid-sensor-attributes: Fix sensor property setting failure.
When system bootup without get sensor property, set sensor
property will be fail.

If no get_feature operation done before set_feature, the sensor
properties will all be the initialized value, which is not the
same with sensor real properties. When set sensor property it will
write back to sensor the changed perperty data combines with other
sensor properties data, it is not right and may be dangerous.

In order to get all sensor properties, choose to read one of the sensor
properties(no matter read any sensor peroperty, driver will get all
the peroperties and return the requested one).

Fixes: 73c6768b71 ("iio: hid-sensors: Common attribute and trigger")
Signed-off-by: Song Hongyan <hongyan.song@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2017-04-02 11:44:03 +01:00
..
accel iio: accel: hid-sensor-accel-3d: Fix duplicate scan index error 2017-04-02 11:26:14 +01:00
adc iio: adc: ti_am335x_adc: fix fifo overrun recovery 2017-03-15 19:47:23 +00:00
amplifiers
buffer
chemical
common iio: hid-sensor-attributes: Fix sensor property setting failure. 2017-04-02 11:44:03 +01:00
counter iio: 104-quad-8: Fix off-by-one error when addressing flag register 2017-02-11 09:36:38 +00:00
dac
dummy
frequency
gyro iio: bmg160: reset chip when probing 2017-03-25 16:36:25 +00:00
health
humidity
imu iio: imu: st_lsm6dsx: fix FIFO_CTRL2 overwrite during watermark configuration 2017-03-19 10:44:42 +00:00
light
magnetometer iio: magnetometer: ak8974: remove incorrect __exit markups 2017-03-05 13:52:01 +00:00
orientation
potentiometer
potentiostat
pressure iio: st_pressure: initialize lps22hb bootime 2017-04-02 10:18:41 +01:00
proximity
temperature
trigger
iio_core_trigger.h
iio_core.h
industrialio-buffer.c sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
industrialio-configfs.c
industrialio-core.c iio: core: Fix IIO_VAL_FRACTIONAL_LOG2 for negative values 2017-04-02 11:14:49 +01:00
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig
Makefile