Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277962
b: refs/heads/master
c: b30f8bd
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks authored and David S. Miller committed Nov 26, 2011
1 parent c5640a2 commit c8ed728
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e9008ee99c77207b2f6aee67e5f849b1e1400a11
refs/heads/master: b30f8bdcfa7dd05f4268348f3388ff903132f28e
3 changes: 3 additions & 0 deletions trunk/drivers/misc/eeprom/eeprom_93cx6.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ static void eeprom_93cx6_startup(struct eeprom_93cx6 *eeprom)
eeprom->reg_data_out = 0;
eeprom->reg_data_clock = 0;
eeprom->reg_chip_select = 1;
eeprom->drive_data = 1;
eeprom->register_write(eeprom);

/*
Expand Down Expand Up @@ -101,6 +102,7 @@ static void eeprom_93cx6_write_bits(struct eeprom_93cx6 *eeprom,
*/
eeprom->reg_data_in = 0;
eeprom->reg_data_out = 0;
eeprom->drive_data = 1;

/*
* Start writing all bits.
Expand Down Expand Up @@ -140,6 +142,7 @@ static void eeprom_93cx6_read_bits(struct eeprom_93cx6 *eeprom,
*/
eeprom->reg_data_in = 0;
eeprom->reg_data_out = 0;
eeprom->drive_data = 0;

/*
* Start reading all bits.
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/eeprom_93cx6.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -62,6 +63,7 @@ struct eeprom_93cx6 {

int width;

char drive_data;
char reg_data_in;
char reg_data_out;
char reg_data_clock;
Expand Down

0 comments on commit c8ed728

Please sign in to comment.