Commit d4216b30 authored by Peter Karlsson's avatar Peter Karlsson Committed by Greg Kroah-Hartman

staging: ft1000-usb: shorten lines to under 80 characters

Wrap function arguments to shorten lines to under 80 characters.
Signed-off-by: default avatarPeter Karlsson <peter@zapto.se>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0ccd8ebb
...@@ -260,7 +260,8 @@ void ft1000_destroy_dev(struct net_device *netdev) ...@@ -260,7 +260,8 @@ void ft1000_destroy_dev(struct net_device *netdev)
/* Make sure we free any memory reserve for slow Queue */ /* Make sure we free any memory reserve for slow Queue */
for (i = 0; i < MAX_NUM_APP; i++) { for (i = 0; i < MAX_NUM_APP; i++) {
while (list_empty(&dev->app_info[i].app_sqlist) == 0) { while (list_empty(&dev->app_info[i].app_sqlist) == 0) {
pdpram_blk = list_entry(dev->app_info[i].app_sqlist.next, struct dpram_blk, list); pdpram_blk = list_entry(dev->app_info[i].app_sqlist.next,
struct dpram_blk, list);
list_del(&pdpram_blk->list); list_del(&pdpram_blk->list);
ft1000_free_buffer(pdpram_blk, &freercvpool); ft1000_free_buffer(pdpram_blk, &freercvpool);
...@@ -502,10 +503,12 @@ static long ft1000_ioctl(struct file *file, unsigned int command, ...@@ -502,10 +503,12 @@ static long ft1000_ioctl(struct file *file, unsigned int command,
memcpy(get_stat_data.eui64, info->eui64, EUISZ); memcpy(get_stat_data.eui64, info->eui64, EUISZ);
if (info->ProgConStat != 0xFF) { if (info->ProgConStat != 0xFF) {
ft1000_read_dpram16(ft1000dev, FT1000_MAG_DSP_LED, (u8 *)&ledStat, FT1000_MAG_DSP_LED_INDX); ft1000_read_dpram16(ft1000dev, FT1000_MAG_DSP_LED,
(u8 *)&ledStat, FT1000_MAG_DSP_LED_INDX);
get_stat_data.LedStat = ntohs(ledStat); get_stat_data.LedStat = ntohs(ledStat);
pr_debug("LedStat = 0x%x\n", get_stat_data.LedStat); pr_debug("LedStat = 0x%x\n", get_stat_data.LedStat);
ft1000_read_dpram16(ft1000dev, FT1000_MAG_DSP_CON_STATE, (u8 *)&conStat, FT1000_MAG_DSP_CON_STATE_INDX); ft1000_read_dpram16(ft1000dev, FT1000_MAG_DSP_CON_STATE,
(u8 *)&conStat, FT1000_MAG_DSP_CON_STATE_INDX);
get_stat_data.ConStat = ntohs(conStat); get_stat_data.ConStat = ntohs(conStat);
pr_debug("ConStat = 0x%x\n", get_stat_data.ConStat); pr_debug("ConStat = 0x%x\n", get_stat_data.ConStat);
} else { } else {
...@@ -696,7 +699,8 @@ static long ft1000_ioctl(struct file *file, unsigned int command, ...@@ -696,7 +699,8 @@ static long ft1000_ioctl(struct file *file, unsigned int command,
if (list_empty(&ft1000dev->app_info[i].app_sqlist) == 0) { if (list_empty(&ft1000dev->app_info[i].app_sqlist) == 0) {
/* pr_debug("Message detected in slow queue\n"); */ /* pr_debug("Message detected in slow queue\n"); */
spin_lock_irqsave(&free_buff_lock, flags); spin_lock_irqsave(&free_buff_lock, flags);
pdpram_blk = list_entry(ft1000dev->app_info[i].app_sqlist.next, struct dpram_blk, list); pdpram_blk = list_entry(ft1000dev->app_info[i].app_sqlist.next,
struct dpram_blk, list);
list_del(&pdpram_blk->list); list_del(&pdpram_blk->list);
ft1000dev->app_info[i].NumOfMsg--; ft1000dev->app_info[i].NumOfMsg--;
/* pr_debug("NumOfMsg for app %d = %d\n", i, ft1000dev->app_info[i].NumOfMsg); */ /* pr_debug("NumOfMsg for app %d = %d\n", i, ft1000dev->app_info[i].NumOfMsg); */
......
...@@ -180,7 +180,8 @@ static u16 get_handshake(struct ft1000_usb *ft1000dev, u16 expected_value) ...@@ -180,7 +180,8 @@ static u16 get_handshake(struct ft1000_usb *ft1000dev, u16 expected_value)
} }
status = ft1000_read_dpram16(ft1000dev, status = ft1000_read_dpram16(ft1000dev,
DWNLD_MAG1_HANDSHAKE_LOC, (u8 *)&handshake, 1); DWNLD_MAG1_HANDSHAKE_LOC,
(u8 *)&handshake, 1);
handshake = ntohs(handshake); handshake = ntohs(handshake);
if (status) if (status)
...@@ -281,12 +282,14 @@ static u16 get_request_type(struct ft1000_usb *ft1000dev) ...@@ -281,12 +282,14 @@ static u16 get_request_type(struct ft1000_usb *ft1000dev)
if (ft1000dev->bootmode == 1) { if (ft1000dev->bootmode == 1) {
status = fix_ft1000_read_dpram32(ft1000dev, status = fix_ft1000_read_dpram32(ft1000dev,
DWNLD_MAG1_TYPE_LOC, (u8 *)&tempx); DWNLD_MAG1_TYPE_LOC,
(u8 *)&tempx);
tempx = ntohl(tempx); tempx = ntohl(tempx);
} else { } else {
tempx = 0; tempx = 0;
status = ft1000_read_dpram16(ft1000dev, status = ft1000_read_dpram16(ft1000dev,
DWNLD_MAG1_TYPE_LOC, (u8 *)&tempword, 1); DWNLD_MAG1_TYPE_LOC,
(u8 *)&tempword, 1);
tempx |= (tempword << 16); tempx |= (tempword << 16);
tempx = ntohl(tempx); tempx = ntohl(tempx);
} }
...@@ -304,7 +307,8 @@ static u16 get_request_type_usb(struct ft1000_usb *ft1000dev) ...@@ -304,7 +307,8 @@ static u16 get_request_type_usb(struct ft1000_usb *ft1000dev)
if (ft1000dev->bootmode == 1) { if (ft1000dev->bootmode == 1) {
status = fix_ft1000_read_dpram32(ft1000dev, status = fix_ft1000_read_dpram32(ft1000dev,
DWNLD_MAG1_TYPE_LOC, (u8 *)&tempx); DWNLD_MAG1_TYPE_LOC,
(u8 *)&tempx);
tempx = ntohl(tempx); tempx = ntohl(tempx);
} else { } else {
if (ft1000dev->usbboot == 2) { if (ft1000dev->usbboot == 2) {
...@@ -332,14 +336,17 @@ static long get_request_value(struct ft1000_usb *ft1000dev) ...@@ -332,14 +336,17 @@ static long get_request_value(struct ft1000_usb *ft1000dev)
if (ft1000dev->bootmode == 1) { if (ft1000dev->bootmode == 1) {
status = fix_ft1000_read_dpram32(ft1000dev, status = fix_ft1000_read_dpram32(ft1000dev,
DWNLD_MAG1_SIZE_LOC, (u8 *)&value); DWNLD_MAG1_SIZE_LOC,
(u8 *)&value);
value = ntohl(value); value = ntohl(value);
} else { } else {
status = ft1000_read_dpram16(ft1000dev, status = ft1000_read_dpram16(ft1000dev,
DWNLD_MAG1_SIZE_LOC, (u8 *)&tempword, 0); DWNLD_MAG1_SIZE_LOC,
(u8 *)&tempword, 0);
value = tempword; value = tempword;
status = ft1000_read_dpram16(ft1000dev, status = ft1000_read_dpram16(ft1000dev,
DWNLD_MAG1_SIZE_LOC, (u8 *)&tempword, 1); DWNLD_MAG1_SIZE_LOC,
(u8 *)&tempword, 1);
value |= (tempword << 16); value |= (tempword << 16);
value = ntohl(value); value = ntohl(value);
} }
......
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