misc: eeprom_93xx46: Include <linux/gpio/consumer.h>
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 20 Jul 2017 02:35:29 +0000 (23:35 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 14:55:47 +0000 (16:55 +0200)
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>
include/linux/eeprom_93xx46.h

index 885f587a35550cb1e4318beaeced8633fe4321e0..915898759280288f553df6369afe83dc8aec2c81 100644 (file)
@@ -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;