diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-09-03 18:56:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 03:06:07 -0400 |
commit | 42a3b4f25af8f8d77feddf27f839fa0628dbff1a (patch) | |
tree | 332370ff3889fabb66a45fb5dcf605b142de77c8 /arch/mips/pmc-sierra/yosemite | |
parent | 875d43e72b5bf22161a81de7554f88eccf8a51ae (diff) |
[PATCH] mips: nuke trailing whitespace
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/mips/pmc-sierra/yosemite')
-rw-r--r-- | arch/mips/pmc-sierra/yosemite/atmel_read_eeprom.c | 14 | ||||
-rw-r--r-- | arch/mips/pmc-sierra/yosemite/atmel_read_eeprom.h | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/arch/mips/pmc-sierra/yosemite/atmel_read_eeprom.c b/arch/mips/pmc-sierra/yosemite/atmel_read_eeprom.c index b067988614c3..97862f45496d 100644 --- a/arch/mips/pmc-sierra/yosemite/atmel_read_eeprom.c +++ b/arch/mips/pmc-sierra/yosemite/atmel_read_eeprom.c | |||
@@ -30,7 +30,7 @@ | |||
30 | * | 30 | * |
31 | * This code reads the ATMEL 24CXX EEPROM. The PMC-Sierra Yosemite board uses the ATMEL | 31 | * This code reads the ATMEL 24CXX EEPROM. The PMC-Sierra Yosemite board uses the ATMEL |
32 | * 24C32/24C64 which uses two byte addressing as compared to 24C16. Note that this program | 32 | * 24C32/24C64 which uses two byte addressing as compared to 24C16. Note that this program |
33 | * uses the serial port like /dev/ttyS0, to communicate with the EEPROM. Hence, you are | 33 | * uses the serial port like /dev/ttyS0, to communicate with the EEPROM. Hence, you are |
34 | * expected to have a connectivity from the EEPROM to the serial port. This program does | 34 | * expected to have a connectivity from the EEPROM to the serial port. This program does |
35 | * __not__ communicate using the I2C protocol | 35 | * __not__ communicate using the I2C protocol |
36 | */ | 36 | */ |
@@ -64,14 +64,14 @@ static void send_ack(void) | |||
64 | static void send_byte(unsigned char byte) | 64 | static void send_byte(unsigned char byte) |
65 | { | 65 | { |
66 | int i = 0; | 66 | int i = 0; |
67 | 67 | ||
68 | for (i = 7; i >= 0; i--) | 68 | for (i = 7; i >= 0; i--) |
69 | send_bit((byte >> i) & 0x01); | 69 | send_bit((byte >> i) & 0x01); |
70 | } | 70 | } |
71 | 71 | ||
72 | static void send_start(void) | 72 | static void send_start(void) |
73 | { | 73 | { |
74 | sda_hi; | 74 | sda_hi; |
75 | delay(TXX); | 75 | delay(TXX); |
76 | scl_hi; | 76 | scl_hi; |
77 | delay(TXX); | 77 | delay(TXX); |
@@ -114,9 +114,9 @@ static unsigned char recv_byte(void) { | |||
114 | int i; | 114 | int i; |
115 | unsigned char byte=0; | 115 | unsigned char byte=0; |
116 | 116 | ||
117 | for (i=7;i>=0;i--) | 117 | for (i=7;i>=0;i--) |
118 | byte |= (recv_bit() << i); | 118 | byte |= (recv_bit() << i); |
119 | 119 | ||
120 | return byte; | 120 | return byte; |
121 | } | 121 | } |
122 | 122 | ||
diff --git a/arch/mips/pmc-sierra/yosemite/atmel_read_eeprom.h b/arch/mips/pmc-sierra/yosemite/atmel_read_eeprom.h index d27566d99ffc..c19f01a32045 100644 --- a/arch/mips/pmc-sierra/yosemite/atmel_read_eeprom.h +++ b/arch/mips/pmc-sierra/yosemite/atmel_read_eeprom.h | |||
@@ -27,7 +27,7 @@ | |||
27 | */ | 27 | */ |
28 | 28 | ||
29 | /* | 29 | /* |
30 | * Header file for atmel_read_eeprom.c | 30 | * Header file for atmel_read_eeprom.c |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #include <linux/types.h> | 33 | #include <linux/types.h> |
@@ -46,7 +46,7 @@ | |||
46 | #define DEFAULT_PORT "/dev/ttyS0" /* Port to open */ | 46 | #define DEFAULT_PORT "/dev/ttyS0" /* Port to open */ |
47 | #define TXX 0 /* Dummy loop for spinning */ | 47 | #define TXX 0 /* Dummy loop for spinning */ |
48 | 48 | ||
49 | #define BLOCK_SEL 0x00 | 49 | #define BLOCK_SEL 0x00 |
50 | #define SLAVE_ADDR 0xa0 | 50 | #define SLAVE_ADDR 0xa0 |
51 | #define READ_BIT 0x01 | 51 | #define READ_BIT 0x01 |
52 | #define WRITE_BIT 0x00 | 52 | #define WRITE_BIT 0x00 |