eeprom_93cx6: Add data direction control.
authorBen Dooks <ben@simtec.co.uk>
Mon, 21 Nov 2011 08:57:56 +0000 (08:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Nov 2011 19:59:38 +0000 (14:59 -0500)
commitb30f8bdcfa7dd05f4268348f3388ff903132f28e
tree6781a42fe2cfe8eacc2ba981cab8cec594f7bfef
parente9008ee99c77207b2f6aee67e5f849b1e1400a11
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>
drivers/misc/eeprom/eeprom_93cx6.c
include/linux/eeprom_93cx6.h