staging: fix iio builds when IIO_RING_BUFFER is not enabled
commite1d76719ea3f3f755d597cef9c2087bdda5fea43
authorRandy Dunlap <randy.dunlap@oracle.com>
Tue, 14 Jun 2011 22:00:18 +0000 (14 15:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Jun 2011 15:29:00 +0000 (16 08:29 -0700)
tree1418222e11d3d90dbd80671643ccacac2065e652
parent9be34c9d526c305efb332ad53460b57d5f8edb3e
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>
drivers/staging/iio/accel/adis16201.h
drivers/staging/iio/accel/adis16203.h