summaryrefslogtreecommitdiffstats
path: root/include/linux
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
parent045020e77684721e4a29e0225be99adc01cfa735 (diff)
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')
-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 126c0a9375f..16c35ac045b 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;