aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage
diff options
context:
space:
mode:
authorBas Peters <baspeters93@gmail.com>2015-02-07 17:42:42 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-18 12:03:06 -0400
commit0de846963586e6ba4133e273dcea66b2f0870db3 (patch)
treedf882712a398f4b1a110c11d5f33ab5511050f39 /drivers/usb/storage
parentc7b364f7dd82e8610373b8c6d788db867d7e99db (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.c15
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
210static struct alauda_card_info *alauda_card_find_id(unsigned char id) { 210static 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) {
223static unsigned char parity[256]; 224static unsigned char parity[256];
224static unsigned char ecc2[256]; 225static unsigned char ecc2[256];
225 226
226static void nand_init_ecc(void) { 227static 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 */
250static void nand_compute_ecc(unsigned char *data, unsigned char *ecc) { 252static 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
273static int nand_compare_ecc(unsigned char *data, unsigned char *ecc) { 276static 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
277static void nand_store_ecc(unsigned char *data, unsigned char *ecc) { 281static 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