Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1692363

[PATCH v2 2/2] misc: eeprom_93xx46: Include <linux/gpio/consumer.h>

From Fabio Estevam <festevam@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v2 2/2] misc: eeprom_93xx46: Include <linux/gpio/consumer.h>
Date 2017-07-20 04:50 +0200
Message-ID <u59Hk-Sh-19@gated-at.bofh.it> (permalink)
References <u59Hk-Sh-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Fabio Estevam <fabio.estevam@nxp.com>

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>
---
Changes since v1:
- None

 include/linux/eeprom_93xx46.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/linux/eeprom_93xx46.h b/include/linux/eeprom_93xx46.h
index 885f587..9158987 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;
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 1/2] misc: eeprom_93xx46: Simplify the usage of gpiod API Fabio Estevam <festevam@gmail.com> - 2017-07-20 04:50 +0200
  [PATCH v2 2/2] misc: eeprom_93xx46: Include <linux/gpio/consumer.h> Fabio Estevam <festevam@gmail.com> - 2017-07-20 04:50 +0200
  Re: [PATCH v2 1/2] misc: eeprom_93xx46: Simplify the usage of gpiod API Fabio Estevam <festevam@gmail.com> - 2017-07-28 18:50 +0200

csiph-web