diff options
author | Bas Peters <baspeters93@gmail.com> | 2015-02-07 17:42:42 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-18 12:03:06 -0400 |
commit | 0de846963586e6ba4133e273dcea66b2f0870db3 (patch) | |
tree | df882712a398f4b1a110c11d5f33ab5511050f39 /drivers/usb/storage | |
parent | c7b364f7dd82e8610373b8c6d788db867d7e99db (diff) |
drivers: usb: storage: alauda.c: properly place braces after function declarations
This patch places braces on a new line following function declarations.
Signed-off-by: Bas Peters <baspeters93@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/storage')
-rw-r--r-- | drivers/usb/storage/alauda.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/usb/storage/alauda.c b/drivers/usb/storage/alauda.c index 62c2d9daa7d6..4b55ab66a534 100644 --- a/drivers/usb/storage/alauda.c +++ b/drivers/usb/storage/alauda.c | |||
@@ -207,7 +207,8 @@ static struct alauda_card_info alauda_card_ids[] = { | |||
207 | { 0,} | 207 | { 0,} |
208 | }; | 208 | }; |
209 | 209 | ||
210 | static struct alauda_card_info *alauda_card_find_id(unsigned char id) { | 210 | static struct alauda_card_info *alauda_card_find_id(unsigned char id) |
211 | { | ||
211 | int i; | 212 | int i; |
212 | 213 | ||
213 | for (i = 0; alauda_card_ids[i].id != 0; i++) | 214 | for (i = 0; alauda_card_ids[i].id != 0; i++) |
@@ -223,7 +224,8 @@ static struct alauda_card_info *alauda_card_find_id(unsigned char id) { | |||
223 | static unsigned char parity[256]; | 224 | static unsigned char parity[256]; |
224 | static unsigned char ecc2[256]; | 225 | static unsigned char ecc2[256]; |
225 | 226 | ||
226 | static void nand_init_ecc(void) { | 227 | static void nand_init_ecc(void) |
228 | { | ||
227 | int i, j, a; | 229 | int i, j, a; |
228 | 230 | ||
229 | parity[0] = 0; | 231 | parity[0] = 0; |
@@ -247,7 +249,8 @@ static void nand_init_ecc(void) { | |||
247 | } | 249 | } |
248 | 250 | ||
249 | /* compute 3-byte ecc on 256 bytes */ | 251 | /* compute 3-byte ecc on 256 bytes */ |
250 | static void nand_compute_ecc(unsigned char *data, unsigned char *ecc) { | 252 | static void nand_compute_ecc(unsigned char *data, unsigned char *ecc) |
253 | { | ||
251 | int i, j, a; | 254 | int i, j, a; |
252 | unsigned char par = 0, bit, bits[8] = {0}; | 255 | unsigned char par = 0, bit, bits[8] = {0}; |
253 | 256 | ||
@@ -270,11 +273,13 @@ static void nand_compute_ecc(unsigned char *data, unsigned char *ecc) { | |||
270 | ecc[2] = ecc2[par]; | 273 | ecc[2] = ecc2[par]; |
271 | } | 274 | } |
272 | 275 | ||
273 | static int nand_compare_ecc(unsigned char *data, unsigned char *ecc) { | 276 | static int nand_compare_ecc(unsigned char *data, unsigned char *ecc) |
277 | { | ||
274 | return (data[0] == ecc[0] && data[1] == ecc[1] && data[2] == ecc[2]); | 278 | return (data[0] == ecc[0] && data[1] == ecc[1] && data[2] == ecc[2]); |
275 | } | 279 | } |
276 | 280 | ||
277 | static void nand_store_ecc(unsigned char *data, unsigned char *ecc) { | 281 | static void nand_store_ecc(unsigned char *data, unsigned char *ecc) |
282 | { | ||
278 | memcpy(data, ecc, 3); | 283 | memcpy(data, ecc, 3); |
279 | } | 284 | } |
280 | 285 | ||