summaryrefslogtreecommitdiffstats
path: root/include/linux/iio
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-13 10:46:33 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-13 10:46:33 -0800
commit9f488ba8633fe77910ea0ba80ec762d9c34af1b6 (patch)
treeaf9137d9bbd1c56827d1675520da328a936daec7 /include/linux/iio
parent045020e77684721e4a29e0225be99adc01cfa735 (diff)
downloadblackbird-obmc-linux-9f488ba8633fe77910ea0ba80ec762d9c34af1b6.tar.gz
blackbird-obmc-linux-9f488ba8633fe77910ea0ba80ec762d9c34af1b6.zip
IIO: fix build error in lp8788-charger.c
Turns out that consumer.h needs to include types.h on some platforms to build properly (like powerpc). Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/iio')
-rw-r--r--include/linux/iio/consumer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/iio/consumer.h b/include/linux/iio/consumer.h
index 126c0a9375f2..16c35ac045bd 100644
--- a/include/linux/iio/consumer.h
+++ b/include/linux/iio/consumer.h
@@ -9,6 +9,8 @@
*/
#ifndef _IIO_INKERN_CONSUMER_H_
#define _IIO_INKERN_CONSUMER_H_
+
+#include <linux/types.h>
#include <linux/iio/types.h>
struct iio_dev;
OpenPOWER on IntegriCloud