Commit c4df2822 authored by Aldo Iljazi's avatar Aldo Iljazi Committed by Greg Kroah-Hartman

Staging: ft1000: ft1000_download: fixed coding style issues

Fixed the following coding style issues:

Lines 84-91,99-106,275,514: Replaced spaces at the start of the lines
with tabs.

Lines 205,271: Inserted spaces after the commas.
Lines 275,1060,1065: Indented the code with tabs instead of spaces.

Line 275: Inserted spaces around '=' and '<', also moved the trailing
statement on the next line.

Line 512: Removed space between function name and open parenthesis.
Line 839: Removed space after '&'.
Line 853: Removed space after '&'.
Signed-off-by: default avatarAldo Iljazi <mail@aldo.io>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c766d23b
...@@ -201,7 +201,7 @@ static u16 get_handshake(struct ft1000_usb *ft1000dev, u16 expected_value) ...@@ -201,7 +201,7 @@ static u16 get_handshake(struct ft1000_usb *ft1000dev, u16 expected_value)
} }
/* write the handshake value to the handshake location */ /* write the handshake value to the handshake location */
static void put_handshake(struct ft1000_usb *ft1000dev,u16 handshake_value) static void put_handshake(struct ft1000_usb *ft1000dev, u16 handshake_value)
{ {
u32 tempx; u32 tempx;
u16 tempword; u16 tempword;
...@@ -267,11 +267,12 @@ static u16 get_handshake_usb(struct ft1000_usb *ft1000dev, u16 expected_value) ...@@ -267,11 +267,12 @@ static u16 get_handshake_usb(struct ft1000_usb *ft1000dev, u16 expected_value)
return HANDSHAKE_TIMEOUT_VALUE; return HANDSHAKE_TIMEOUT_VALUE;
} }
static void put_handshake_usb(struct ft1000_usb *ft1000dev,u16 handshake_value) static void put_handshake_usb(struct ft1000_usb *ft1000dev, u16 handshake_value)
{ {
int i; int i;
for (i=0; i<1000; i++); for (i = 0; i < 1000; i++)
;
} }
static u16 get_request_type(struct ft1000_usb *ft1000dev) static u16 get_request_type(struct ft1000_usb *ft1000dev)
...@@ -508,7 +509,7 @@ static int write_blk(struct ft1000_usb *ft1000dev, u16 **pUsFile, u8 **pUcFile, ...@@ -508,7 +509,7 @@ static int write_blk(struct ft1000_usb *ft1000dev, u16 **pUsFile, u8 **pUcFile,
return status; return status;
} }
static void usb_dnld_complete (struct urb *urb) static void usb_dnld_complete(struct urb *urb)
{ {
//DEBUG("****** usb_dnld_complete\n"); //DEBUG("****** usb_dnld_complete\n");
} }
...@@ -835,7 +836,7 @@ int scram_dnldr(struct ft1000_usb *ft1000dev, void *pFileStart, ...@@ -835,7 +836,7 @@ int scram_dnldr(struct ft1000_usb *ft1000dev, void *pFileStart,
* Position ASIC DPRAM auto-increment pointer. * Position ASIC DPRAM auto-increment pointer.
*/ */
data = (u16 *) & mailbox_data->data[0]; data = (u16 *) &mailbox_data->data[0];
dpram = (u16) DWNLD_MAG1_PS_HDR_LOC; dpram = (u16) DWNLD_MAG1_PS_HDR_LOC;
if (word_length & 0x1) if (word_length & 0x1)
word_length++; word_length++;
...@@ -849,7 +850,7 @@ int scram_dnldr(struct ft1000_usb *ft1000dev, void *pFileStart, ...@@ -849,7 +850,7 @@ int scram_dnldr(struct ft1000_usb *ft1000dev, void *pFileStart,
status = status =
fix_ft1000_write_dpram32 fix_ft1000_write_dpram32
(ft1000dev, dpram++, (ft1000dev, dpram++,
(u8 *) & templong); (u8 *) &templong);
} }
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment