1
0
Fork 0
remarkable-linux/drivers/iio
Lars-Peter Clausen 3f9481902f iio: ad9523: Fix return value for ad952x_store()
commit 9a5094ca29 upstream.

A sysfs write callback function needs to either return the number of
consumed characters or an error.

The ad952x_store() function currently returns 0 if the input value was "0",
this will signal that no characters have been consumed and the function
will be called repeatedly in a loop indefinitely. Fix this by returning
number of supplied characters to indicate that the whole input string has
been consumed.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Fixes: cd1678f963 ("iio: frequency: New driver for AD9523 SPI Low Jitter Clock Generator")
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-09 19:55:56 +02:00
..
accel iio: sca3000: Fix missing return in switch 2018-09-09 19:55:56 +02:00
adc iio: adc: ad7791: remove sample freq sysfs attributes 2018-07-03 11:24:57 +02:00
amplifiers spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
buffer iio:kfifo_buf: check for uint overflow 2018-06-05 11:41:58 +02:00
chemical iio: chemical: ccs811: Corrected firmware boot/application mode transition 2018-03-28 18:24:28 +02:00
common iio: st_sensors: add register mask for status register 2017-12-25 14:26:26 +01:00
counter iio: counter: Add support for STM32 LPTimer 2017-09-04 14:49:30 +01:00
dac License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dummy License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
frequency iio: ad9523: Fix return value for ad952x_store() 2018-09-09 19:55:56 +02:00
gyro iio: st_sensors: add register mask for status register 2017-12-25 14:26:26 +01:00
health iio: health: max30102: Add power enable parameter to get_temp function 2018-03-19 08:42:51 +01:00
humidity License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
imu iio: imu: st_lsm6dsx: fix endianness in st_lsm6dsx_read_oneshot() 2018-03-28 18:24:49 +02:00
light License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
magnetometer iio: st_sensors: add register mask for status register 2017-12-25 14:26:26 +01:00
multiplexer iio: multiplexer: add NULL check on devm_kzalloc() and devm_kmemdup() return values 2017-12-10 13:40:43 +01:00
orientation iio: orientation: hid-sensor-rotation: Drop unnecessary static 2017-07-17 21:45:01 +01:00
potentiometer License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
potentiostat iio: lmp91000: Set parent device 2017-02-19 12:01:52 +00:00
pressure iio: pressure: bmp280: fix relative humidity unit 2018-08-24 13:09:05 +02:00
proximity iio: srf08: fix link error "devm_iio_triggered_buffer_setup" undefined 2018-02-28 10:19:40 +01:00
temperature License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
trigger License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig iio: multiplexer: new iio category and iio-mux driver 2017-06-03 19:29:26 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
iio_core.h iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
iio_core_trigger.h
industrialio-buffer.c iio: buffer: check if a buffer has been set up when poll is called 2018-02-28 10:19:40 +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: fix kernel-doc build errors 2018-02-25 11:07:58 +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