mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
staging: fix iio builds when IIO_RING_BUFFER is not enabled
Fix build by moving enum list outside of #ifdef CONFIG_IIO_RING_BUFFER. drivers/staging/iio/accel/adis16201_core.c:413: error: 'ADIS16201_SCAN_SUPPLY' undeclared here (not in a function) drivers/staging/iio/accel/adis16201_core.c:417: error: 'ADIS16201_SCAN_TEMP' undeclared here (not in a function) .. drivers/staging/iio/accel/adis16203_core.c:374: error: 'ADIS16203_SCAN_SUPPLY' undeclared here (not in a function) drivers/staging/iio/accel/adis16203_core.c:378: error: 'ADIS16203_SCAN_AUX_ADC' undeclared here (not in a function) .. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Cc: linux-iio@vger.kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
9be34c9d52
commit
e1d76719ea
@ -81,7 +81,6 @@ struct adis16201_state {
|
||||
|
||||
int adis16201_set_irq(struct iio_dev *indio_dev, bool enable);
|
||||
|
||||
#ifdef CONFIG_IIO_RING_BUFFER
|
||||
enum adis16201_scan {
|
||||
ADIS16201_SCAN_SUPPLY,
|
||||
ADIS16201_SCAN_ACC_X,
|
||||
@ -92,6 +91,7 @@ enum adis16201_scan {
|
||||
ADIS16201_SCAN_INCLI_Y,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_IIO_RING_BUFFER
|
||||
void adis16201_remove_trigger(struct iio_dev *indio_dev);
|
||||
int adis16201_probe_trigger(struct iio_dev *indio_dev);
|
||||
|
||||
|
@ -76,7 +76,6 @@ struct adis16203_state {
|
||||
|
||||
int adis16203_set_irq(struct iio_dev *indio_dev, bool enable);
|
||||
|
||||
#ifdef CONFIG_IIO_RING_BUFFER
|
||||
enum adis16203_scan {
|
||||
ADIS16203_SCAN_SUPPLY,
|
||||
ADIS16203_SCAN_AUX_ADC,
|
||||
@ -85,6 +84,7 @@ enum adis16203_scan {
|
||||
ADIS16203_SCAN_INCLI_Y,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_IIO_RING_BUFFER
|
||||
void adis16203_remove_trigger(struct iio_dev *indio_dev);
|
||||
int adis16203_probe_trigger(struct iio_dev *indio_dev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user