summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Reid <preid@electromag.com.au>2017-11-28 06:09:10 +0300
committerWolfram Sang <wsa@the-dreams.de>2017-11-28 12:44:00 +0300
commit10c9ef045a7e19e9fd4c829c7321f9d2048808c0 (patch)
tree1b746de14e7c48a9f1e2608606f24e58dd123eaa
parent4ed152c4daf32d2cd4a5285f3aaca3a4c89a31fb (diff)
downloadlinux-10c9ef045a7e19e9fd4c829c7321f9d2048808c0.tar.xz
i2c: core: fix compile issue related to incorrect gpio header
The correct header to include for the gpiod interface is <linux/gpio/consumer.h>. Fixes: 3991c5c80beaf7eb9 ("i2c: Switch to using gpiod interface for gpio bus recovery") Signed-off-by: Phil Reid <preid@electromag.com.au> Reviewed-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r--drivers/i2c/i2c-core-base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c
index 54ffc8da40df..bf52cca87363 100644
--- a/drivers/i2c/i2c-core-base.c
+++ b/drivers/i2c/i2c-core-base.c
@@ -27,7 +27,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
-#include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
#include <linux/i2c.h>
#include <linux/i2c-smbus.h>
#include <linux/idr.h>