OSDN Git Service

i2c: core: fix compile issue related to incorrect gpio header
authorPhil Reid <preid@electromag.com.au>
Tue, 28 Nov 2017 03:09:10 +0000 (11:09 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 28 Nov 2017 09:44:00 +0000 (10:44 +0100)
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>
drivers/i2c/i2c-core-base.c

index 54ffc8d..bf52cca 100644 (file)
@@ -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>