aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2017-07-19 23:35:29 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 16:55:47 +0200
commite0552573575ef43daaee5b1a139952d6127f088c (patch)
tree5df31a5c25e4adf4f2af74b8cd3cbd1ec7ed16ee
parentmisc: eeprom_93xx46: Simplify the usage of gpiod API (diff)
downloadlinux-dev-e0552573575ef43daaee5b1a139952d6127f088c.tar.xz
linux-dev-e0552573575ef43daaee5b1a139952d6127f088c.zip
misc: eeprom_93xx46: Include <linux/gpio/consumer.h>
eeprom_93xx46_platform_data struct has a 'struct gpio_desc' type member, so it is better to include <linux/gpio/consumer.h>, which provides 'struct gpio_desc' type. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--include/linux/eeprom_93xx46.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/eeprom_93xx46.h b/include/linux/eeprom_93xx46.h
index 885f587a3555..915898759280 100644
--- a/include/linux/eeprom_93xx46.h
+++ b/include/linux/eeprom_93xx46.h
@@ -2,8 +2,7 @@
* Module: eeprom_93xx46
* platform description for 93xx46 EEPROMs.
*/
-
-struct gpio_desc;
+#include <linux/gpio/consumer.h>
struct eeprom_93xx46_platform_data {
unsigned char flags;