summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBen Dooks <ben@simtec.co.uk>2011-11-21 08:57:56 +0000
committerDavid S. Miller <davem@davemloft.net>2011-11-26 14:59:38 -0500
commitb30f8bdcfa7dd05f4268348f3388ff903132f28e (patch)
tree6781a42fe2cfe8eacc2ba981cab8cec594f7bfef /include/linux
parente9008ee99c77207b2f6aee67e5f849b1e1400a11 (diff)
downloadlinux-stable-b30f8bdcfa7dd05f4268348f3388ff903132f28e.tar.gz
linux-stable-b30f8bdcfa7dd05f4268348f3388ff903132f28e.tar.bz2
linux-stable-b30f8bdcfa7dd05f4268348f3388ff903132f28e.zip
eeprom_93cx6: Add data direction control.
Some devices need to know if the data is to be output or read, so add a data direction into the eeprom structure to tell the driver whether the data line should be driven. The user in this case is the Micrel KS8851 which has a direction control for the EEPROM data line and thus needs to know whether to drive it (writing) or to tristate it for receiving. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Cc: Wolfram Sang <w.sang@pengutronix.de> Cc: Jean Delvare <khali@linux-fr.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/eeprom_93cx6.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/eeprom_93cx6.h b/include/linux/eeprom_93cx6.h
index c4627cbdb8e0..e04546e9c592 100644
--- a/include/linux/eeprom_93cx6.h
+++ b/include/linux/eeprom_93cx6.h
@@ -46,6 +46,7 @@
* @register_write(struct eeprom_93cx6 *eeprom): handler to
* write to the eeprom register by using all reg_* fields.
* @width: eeprom width, should be one of the PCI_EEPROM_WIDTH_* defines
+ * @drive_data: Set if we're driving the data line.
* @reg_data_in: register field to indicate data input
* @reg_data_out: register field to indicate data output
* @reg_data_clock: register field to set the data clock
@@ -62,6 +63,7 @@ struct eeprom_93cx6 {
int width;
+ char drive_data;
char reg_data_in;
char reg_data_out;
char reg_data_clock;