linux-stable/drivers/staging/iio/adc
Michael Hennerich cd4361c7e2 iio: core: constitfy available_scan_mask
The core must not modify available_scan_mask, because it causes problems
with drivers where multiple instances of the driver share the same mask set.
So make this explicit by marking available scan masks as const.

The max1363 driver needs some minor adjustment to accommodate this change.
Pull scan mask allocation into a separate function.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-02-24 12:14:04 -08:00
..
ad799x.h staging:iio:adc:ad799x stop reading from buffer for sysfs accesses 2011-12-08 12:11:11 -08:00
ad799x_core.c staging:iio: Rename IIO_EVENT_CODE_EXTRACT_NUM to IIO_EVENT_CODE_EXTRACT_CHAN 2012-02-13 20:10:32 -08:00
ad799x_ring.c staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
ad7192.c staging:iio:adc:ad7192 unwind use of is_visible for attribute group. 2012-02-09 10:06:04 -08:00
ad7192.h IIO: ADC: New driver for AD7190/AD7192/AD7195 4 Channel SPI ADC 2011-08-23 13:40:46 -07:00
ad7280a.c Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging 2012-01-09 12:18:17 -08:00
ad7280a.h iio: adc: New driver for AD7280A Lithium Ion Battery Monitoring System 2011-08-23 13:35:49 -07:00
ad7291.c staging:iio: Rename IIO_EVENT_CODE_EXTRACT_NUM to IIO_EVENT_CODE_EXTRACT_CHAN 2012-02-13 20:10:32 -08:00
ad7298.h staging:iio:adc:ad7476 scrap read from buffer for sysfs access. 2011-12-08 12:11:10 -08:00
ad7298_core.c Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging 2012-01-09 12:18:17 -08:00
ad7298_ring.c staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
ad7476.h staging:iio:adc:ad7606 remove buffer access for sysfs interfaces. 2011-12-08 12:11:10 -08:00
ad7476_core.c Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging 2012-01-09 12:18:17 -08:00
ad7476_ring.c staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
ad7606.h staging:iio:adc:ad7606 remove buffer access to data from sysfs read. 2011-12-08 12:11:11 -08:00
ad7606_core.c staging:iio:adc:ad7606 unwind use of is_visible for attrs. 2012-02-09 10:06:05 -08:00
ad7606_par.c staging:iio: Add missing MODULE_DEVICE_TABLE and MODULE_ALIAS 2011-11-26 16:48:04 -08:00
ad7606_ring.c staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
ad7606_spi.c Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging 2012-01-09 12:18:17 -08:00
ad7780.c Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging 2012-01-09 12:18:17 -08:00
ad7780.h staging: IIO: ADC: New driver for the AD7780 / AD7781 24-bit Sigma-Delta ADC 2011-04-05 12:04:55 -07:00
ad7793.c staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
ad7793.h IIO: ADC: New driver for AD7792/AD7793 3 Channel SPI ADC 2011-06-28 14:47:25 -07:00
ad7816.c Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging 2012-01-09 12:18:17 -08:00
ad7887.h staging:iio:adc:ad7887 stop reading from buffer for sysfs access. 2011-12-08 12:11:11 -08:00
ad7887_core.c Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging 2012-01-09 12:18:17 -08:00
ad7887_ring.c staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
adt7310.c staging:iio:adc:adt7310/7410 sticking plaster fix for broken event attrs. 2012-02-09 10:06:06 -08:00
adt7410.c staging:iio:adc:adt7310/7410 sticking plaster fix for broken event attrs. 2012-02-09 10:06:06 -08:00
Kconfig staging: iio: LPC32xx: ADC driver 2012-02-15 17:21:43 -08:00
lpc32xx_adc.c staging: iio: LPC32xx: ADC driver 2012-02-15 17:21:43 -08:00
Makefile staging: iio: LPC32xx: ADC driver 2012-02-15 17:21:43 -08:00
max1363.h staging:iio:adc:max1363 stop reading from buffer for sysfs access 2011-12-08 12:11:12 -08:00
max1363_core.c iio: core: constitfy available_scan_mask 2012-02-24 12:14:04 -08:00
max1363_ring.c staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00