linux_dsm_epyc7002/drivers/iio
Akinobu Mita a6fe5e52d5 iio: adc: ti-ads1015: don't return invalid value from buffer setup callbacks
pm_runtime_get_sync() and pm_runtime_put_autosuspend() return 0 on
success, 1 if the device's runtime PM status was already requested status
or error code on failure.  So a positive return value doesn't indicate an
error condition.

However, any non-zero return values from buffer preenable and postdisable
callbacks are recognized as an error and this driver reuses the return
value from pm_runtime_get_sync() and pm_runtime_put_autosuspend() in
these callbacks.  This change fixes the false error detections.

Cc: Daniel Baluta <daniel.baluta@gmail.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2017-08-20 15:41:14 +01:00
..
accel iio: accel: bma180: constify i2c_device_id 2017-08-20 10:15:45 +01:00
adc iio: adc: ti-ads1015: don't return invalid value from buffer setup callbacks 2017-08-20 15:41:14 +01:00
amplifiers spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
buffer iio: buffer-dmaengine: Add missing header buffer_impl.h 2017-06-13 20:56:05 +01:00
chemical iio: chemical: ccs811: Add triggered buffer support 2017-08-18 08:08:02 +01:00
common iio: common: st_sensors: move st_sensors_of_i2c_probe() in common code 2017-07-01 10:16:56 +01:00
counter iio: pc104: Mask PC/104 drivers via the PC104 Kconfig option 2017-03-15 21:59:08 +00:00
dac iio: dac: stm32: add support for stm32f4 2017-07-15 12:26:26 +01:00
dummy iio:dummy: Stop enabling timestamp by default. 2017-01-10 19:54:55 +00:00
frequency iio: frequency: ad9523: use unsigned int rather then bare unsigned 2016-04-17 10:31:03 +01:00
gyro iio: gyro: st_gyro_spi: add OF capability to st_gyro_spi 2017-07-02 10:24:56 +01:00
health First set of IIO new device support, features and cleanup for the 4.12 cycle. 2017-03-06 13:17:21 +01:00
humidity iio: humidity: hts221: move drdy enable logic in hts221_trig_set_state() 2017-07-25 20:03:04 +01:00
imu iio: adis16400: Change unsigned to unsigned int 2017-07-02 10:27:03 +01:00
light iio: light: tsl2583: constify i2c_device_id 2017-08-20 10:17:23 +01:00
magnetometer iio: magnetometer: ak8974: debug AMI306 calibration data 2017-08-20 15:41:11 +01:00
multiplexer iio: multiplexer: new iio category and iio-mux driver 2017-06-03 19:29:26 +09:00
orientation iio: orientation: hid-sensor-rotation: Drop unnecessary static 2017-07-17 21:45:01 +01:00
potentiometer iio: max5481: Add support for Maxim digital potentiometers 2017-01-28 12:13:31 +00:00
potentiostat iio: lmp91000: Set parent device 2017-02-19 12:01:52 +00:00
pressure iio: pressure: st_pressure: fix drdy configuration for LPS22HB and LPS25H 2017-08-12 13:46:32 +01:00
proximity iio: srf08: add support for srf02 in i2c mode 2017-08-18 08:04:17 +01:00
temperature iio: temperature: tsys01: Add OF match table 2017-07-01 10:16:42 +01:00
trigger iio: trigger: stm32-timer: add output compare triggers 2017-08-12 13:05:27 +01:00
iio_core_trigger.h
iio_core.h iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
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 iio:configfs: Introduce iio/configfs.h to provide a location for the configfs_subsystem 2015-12-05 16:25:30 +00:00
industrialio-core.c iio: add hardware triggered operating mode 2017-06-11 15:58:41 +01:00
industrialio-event.c iio: iio_push_event(): Don't crash if the event interface is not registered 2016-09-10 16:40:44 +01:00
industrialio-sw-device.c iio: Add support for creating IIO devices via configfs 2016-05-04 11:43:54 +01:00
industrialio-sw-trigger.c iio: core: fix ptr_ret.cocci warnings 2016-01-20 17:09:18 -08:00
industrialio-trigger.c iio: trigger: fix NULL pointer dereference in iio_trigger_write_current() 2017-05-21 12:36:59 +01:00
industrialio-triggered-event.c iio: Support triggered events 2015-08-27 20:47:09 +01:00
inkern.c First round of IIO new device support, features and cleanups for the 4.14 cycle. 2017-07-27 21:29:49 -07:00
Kconfig iio: multiplexer: new iio category and iio-mux driver 2017-06-03 19:29:26 +09:00
Makefile iio: multiplexer: new iio category and iio-mux driver 2017-06-03 19:29:26 +09:00