Staging: fix more iio builds when IIO_RING_BUFFER is not enabled
authorRandy Dunlap <randy.dunlap@oracle.com>
Fri, 24 Jun 2011 16:28:32 +0000 (09:28 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 27 Jun 2011 21:19:20 +0000 (14:19 -0700)
commit89089158d191ba0195b33ebf35f91ed217d44848
tree457df791a4d5d2842de4d105cd25f1a31c2ef61f
parent2c53b436a30867eb6b47dd7bab23ba638d1fb0d2
Staging: fix more iio builds when IIO_RING_BUFFER is not enabled

Fix lots more build errors in staging/iio when CONFIG_IIO_RING_BUFFER
is not enabled by moving enums and defines outside of the
CONFIG_IIO_RING_BUFFER ifdef block.

Examples (one from each driver; there were 116 total errors):

drivers/staging/iio/accel/adis16204_core.c:437: error: 'ADIS16204_SCAN_SUPPLY' undeclared here (not in a function)
drivers/staging/iio/accel/adis16209_core.c:410: error: 'ADIS16209_SCAN_SUPPLY' undeclared here (not in a function)
drivers/staging/iio/gyro/adis16260_core.c:420: error: 'ADIS16260_SCAN_GYRO' undeclared here (not in a function)
drivers/staging/iio/imu/adis16400_core.c:565: error: 'ADIS16400_SCAN_SUPPLY' undeclared here (not in a function)

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/accel/adis16204.h
drivers/staging/iio/accel/adis16209.h
drivers/staging/iio/gyro/adis16260.h
drivers/staging/iio/imu/adis16400.h