aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/eeprom_93xx46.h
diff options
context:
space:
mode:
authorCory Tusar <cory.tusar@pid1solutions.com>2016-02-10 14:32:08 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-11 19:23:28 -0800
commit3ca9b1ac28398c6fe0bed335d2d71a35e1c5f7c9 (patch)
tree7c4bc01765b20b0f281648ff7833a7cbd8b94516 /include/linux/eeprom_93xx46.h
parentmisc: eeprom_93xx46: Add quirks to support Atmel AT93C46D device. (diff)
downloadwireguard-linux-3ca9b1ac28398c6fe0bed335d2d71a35e1c5f7c9.tar.xz
wireguard-linux-3ca9b1ac28398c6fe0bed335d2d71a35e1c5f7c9.zip
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/eeprom_93xx46.h')
-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;
};