kernel_optimize_test/drivers/iio
Arnd Bergmann 22ed1a1c1c iio: as3935: improve error reporting in as3935_event_work
gcc warns about a potentially uninitialized variable use
in as3935_event_work:

drivers/iio/proximity/as3935.c: In function ‘as3935_event_work’:
drivers/iio/proximity/as3935.c:231:6: error: ‘val’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

This case specifically happens when spi_w8r8() fails with a
negative return code. We check all other users of this function
except this one.

As the error is rather unlikely to happen after the device
has already been initialized, this just adds a dev_warn().
Another warning already exists in the same function, but is
missing a trailing '\n' character, so I'm fixing that too.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-06-27 20:59:10 +01:00
..
accel iio: mma8452: update Freescale company information 2016-06-11 17:25:18 +01:00
adc iio: adc: ti-adc081c: add ACPI device ID matching 2016-06-27 20:59:09 +01:00
amplifiers spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
buffer iio: buffer-dmaengine: Use dmaengine_terminate_sync() 2016-02-09 21:05:17 +00:00
chemical iio: chemical: atlas-ph-sensor: add EC feature 2016-05-29 20:03:23 +01:00
common iio:st_sensors: fix power regulator usage 2016-05-29 16:08:10 +01:00
dac iio: dac: Add support for the AD5592R/AD5593R ADCs/DACs 2016-04-10 14:29:06 +01:00
dummy iio: dummy: Convert IIO dummy to configfs 2016-05-04 11:44:06 +01:00
frequency iio: frequency: ad9523: use unsigned int rather then bare unsigned 2016-04-17 10:31:03 +01:00
gyro iio:st_sensors: fix power regulator usage 2016-05-29 16:08:10 +01:00
health iio: health/afe4404: ENSEPGAIN is part of CONTROL2 register 2016-05-04 11:14:16 +01:00
humidity iio: Export I2C module alias information 2016-05-21 20:08:14 +01:00
imu imu: bmi160: Add avail frequency and scale attributes 2016-05-04 10:51:39 +01:00
light iio: light: gp2ap020a00f: use iio helper function to lock direct mode 2016-06-11 17:18:22 +01:00
magnetometer iio: magnetometer: bmc150: Document Bosch supported chips 2016-05-29 20:06:11 +01:00
orientation iio: orientation: hid-sensor-rotation: Fix memory leak in probe() 2015-05-17 09:10:25 +01:00
potentiometer iio: max5487: Add support for Maxim digital potentiometers 2016-05-21 20:13:14 +01:00
pressure iio: ms5637 Add Measurement Specialties explicit MS5805 and MS5837 support 2016-06-11 17:27:52 +01:00
proximity iio: as3935: improve error reporting in as3935_event_work 2016-06-27 20:59:10 +01:00
temperature iio: Export I2C module alias information 2016-05-21 20:08:14 +01:00
trigger iio:trigger: Experimental kthread tight loop trigger (thread only) 2016-06-03 13:18:44 +01:00
iio_core_trigger.h
iio_core.h
industrialio-buffer.c iio: Add helper function for calculating scan index storage size 2016-02-06 18:21:35 +00: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: electricalconductivity: add IIO_ELECTRICALCONDUCTIVITY type 2016-05-29 20:03:21 +01:00
industrialio-event.c iio: event: Remove negative error code from iio_event_poll 2015-08-12 19:26:39 +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: Refuse to register triggers with duplicate names 2016-06-27 20:59:08 +01:00
industrialio-triggered-event.c iio: Support triggered events 2015-08-27 20:47:09 +01:00
inkern.c iio: core: Add devm_ APIs for iio_channel_{get,release}_all 2016-04-19 19:58:15 +01:00
Kconfig iio: Add support for creating IIO devices via configfs 2016-05-04 11:43:54 +01:00
Makefile iio: Add support for creating IIO devices via configfs 2016-05-04 11:43:54 +01:00