2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 18:53:52 +08:00
linux-next/drivers/iio
Dan Carpenter 1a135d1ab5 iio: frequency: adf4350: using an uninitialized variable
GCC complains that we use an uninitialized variable if the user passes
an invalid parameter to adf4350_read().  I decided that we should return
-EINVAL instead in that case.

However, when I looked up at adf4350_write() it returned -ENODEV for
that condition.  In the end, I decided the -EINVAL was the right thing
and I change adf4350_write() to match.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-06-12 14:48:39 -07:00
..
adc IIO: AT91: Add DT support to at91_adc driver 2012-05-14 13:25:33 -07:00
amplifiers iio: amplifiers: New driver for AD8366 Dual-Digital Variable Gain Amplifier 2012-05-14 13:15:39 -07:00
dac iio: max517: mark probe() and remove() with __devinit and __devexit 2012-06-12 14:45:16 -07:00
frequency iio: frequency: adf4350: using an uninitialized variable 2012-06-12 14:48:39 -07:00
light iio: add LM3533 ambient-light-sensor driver 2012-06-04 21:12:29 -07:00
iio_core_trigger.h IIO: Move the core files to drivers/iio 2012-04-25 11:11:38 -07:00
iio_core.h IIO: Move the core files to drivers/iio 2012-04-25 11:11:38 -07:00
industrialio-buffer.c iio: Use dev_to_iio_dev() 2012-05-14 13:37:45 -07:00
industrialio-core.c iio: iio_enum_available_read: Prevent possible buffer overflow 2012-06-07 14:26:29 +09:00
industrialio-event.c iio: Use dev_to_iio_dev() 2012-05-14 13:37:45 -07:00
industrialio-trigger.c iio: Use dev_to_iio_dev() 2012-05-14 13:37:45 -07:00
inkern.c iio:inkern: Use iio_device_{get,put} 2012-06-04 21:21:29 -07:00
Kconfig staging:iio: Move DAC drivers out of staging 2012-06-05 14:02:25 +09:00
kfifo_buf.c IIO: Move the core files to drivers/iio 2012-04-25 11:11:38 -07:00
Makefile staging:iio: Move DAC drivers out of staging 2012-06-05 14:02:25 +09:00