summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorCory Tusar <cory.tusar@pid1solutions.com>2016-02-10 22:32:08 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-12 06:23:28 +0300
commit3ca9b1ac28398c6fe0bed335d2d71a35e1c5f7c9 (patch)
tree7c4bc01765b20b0f281648ff7833a7cbd8b94516 /include/linux
parente1379b56e9e88653fcb58cbaa71cd6b1cc304918 (diff)
downloadlinux-3ca9b1ac28398c6fe0bed335d2d71a35e1c5f7c9.tar.xz
misc: eeprom_93xx46: Add support for a GPIO 'select' line.
This commit adds support to the eeprom_93x46 driver allowing a GPIO line to function as a 'select' or 'enable' signal prior to accessing the EEPROM. Signed-off-by: Cory Tusar <cory.tusar@pid1solutions.com> Tested-by: Chris Healy <chris.healy@zii.aero> Reviewed-by: Vladimir Zapolskiy <vz@mleia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/eeprom_93xx46.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/eeprom_93xx46.h b/include/linux/eeprom_93xx46.h
index 92fa4c37ac1f..885f587a3555 100644
--- a/include/linux/eeprom_93xx46.h
+++ b/include/linux/eeprom_93xx46.h
@@ -3,6 +3,8 @@
* platform description for 93xx46 EEPROMs.
*/
+struct gpio_desc;
+
struct eeprom_93xx46_platform_data {
unsigned char flags;
#define EE_ADDR8 0x01 /* 8 bit addr. cfg */
@@ -21,4 +23,5 @@ struct eeprom_93xx46_platform_data {
*/
void (*prepare)(void *);
void (*finish)(void *);
+ struct gpio_desc *select;
};