summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/accel
diff options
context:
space:
mode:
authorCristina Opriceana2015-03-04 01:37:15 +0100
committerGreg Kroah-Hartman2015-03-06 18:54:33 +0100
commit37e3be9de378d4775c617b0649ff89a6dc6bf07d (patch)
tree969aa78b57066bc955d9fb074a35814d1c70158d /drivers/staging/iio/accel
parentstaging: iio: meter: add check on return variables (diff)
downloadkernel-qcow2-linux-37e3be9de378d4775c617b0649ff89a6dc6bf07d.tar.gz
kernel-qcow2-linux-37e3be9de378d4775c617b0649ff89a6dc6bf07d.tar.xz
kernel-qcow2-linux-37e3be9de378d4775c617b0649ff89a6dc6bf07d.zip
Staging: iio: Added define guards where needed
The following files were added define guards to prevent multiple inclusion. Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio/accel')
-rw-r--r--drivers/staging/iio/accel/sca3000.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/iio/accel/sca3000.h b/drivers/staging/iio/accel/sca3000.h
index b284e5a6cac1..9c8a9587df7d 100644
--- a/drivers/staging/iio/accel/sca3000.h
+++ b/drivers/staging/iio/accel/sca3000.h
@@ -38,6 +38,9 @@
* Can probably alleviate this by reading the interrupt register on start, but
* that is really just brushing the problem under the carpet.
*/
+#ifndef _SCA3000
+#define _SCA3000
+
#define SCA3000_WRITE_REG(a) (((a) << 2) | 0x02)
#define SCA3000_READ_REG(a) ((a) << 2)
@@ -272,4 +275,4 @@ static inline void sca3000_ring_int_process(u8 val, void *ring)
}
#endif
-
+#endif /* _SCA3000 */