Commit 83a3ac86 authored by Nicolas Kaiser's avatar Nicolas Kaiser Committed by Greg Kroah-Hartman

usb: conexant: fixed spacing and brace coding style issues

Fixed spacing and brace coding style issues.
Signed-off-by: default avatarNicolas Kaiser <nikai@nikai.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f7244ce6
...@@ -564,7 +564,7 @@ static void cxacru_timeout_kill(unsigned long data) ...@@ -564,7 +564,7 @@ static void cxacru_timeout_kill(unsigned long data)
} }
static int cxacru_start_wait_urb(struct urb *urb, struct completion *done, static int cxacru_start_wait_urb(struct urb *urb, struct completion *done,
int* actual_length) int *actual_length)
{ {
struct timer_list timer; struct timer_list timer;
...@@ -952,7 +952,7 @@ static int cxacru_fw(struct usb_device *usb_dev, enum cxacru_fw_request fw, ...@@ -952,7 +952,7 @@ static int cxacru_fw(struct usb_device *usb_dev, enum cxacru_fw_request fw,
put_unaligned(cpu_to_le32(addr), (__le32 *)(buf + offb)); put_unaligned(cpu_to_le32(addr), (__le32 *)(buf + offb));
offb += 4; offb += 4;
addr += l; addr += l;
if(l) if (l)
memcpy(buf + offb, data + offd, l); memcpy(buf + offb, data + offd, l);
if (l < stride) if (l < stride)
memset(buf + offb + l, 0, stride - l); memset(buf + offb + l, 0, stride - l);
...@@ -967,7 +967,7 @@ static int cxacru_fw(struct usb_device *usb_dev, enum cxacru_fw_request fw, ...@@ -967,7 +967,7 @@ static int cxacru_fw(struct usb_device *usb_dev, enum cxacru_fw_request fw,
} }
offb = 0; offb = 0;
} }
} while(offd < size); } while (offd < size);
dbg("sent fw %#x", fw); dbg("sent fw %#x", fw);
ret = 0; ret = 0;
...@@ -1043,8 +1043,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, ...@@ -1043,8 +1043,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance,
if (instance->modem_type->boot_rom_patch) { if (instance->modem_type->boot_rom_patch) {
val = cpu_to_le32(BR_ADDR); val = cpu_to_le32(BR_ADDR);
ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, BR_STACK_ADDR, (u8 *) &val, 4); ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, BR_STACK_ADDR, (u8 *) &val, 4);
} } else {
else {
ret = cxacru_fw(usb_dev, FW_GOTO_MEM, 0x0, 0x0, FW_ADDR, NULL, 0); ret = cxacru_fw(usb_dev, FW_GOTO_MEM, 0x0, 0x0, FW_ADDR, NULL, 0);
} }
if (ret) { if (ret) {
...@@ -1068,7 +1067,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, ...@@ -1068,7 +1067,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance,
} }
static int cxacru_find_firmware(struct cxacru_data *instance, static int cxacru_find_firmware(struct cxacru_data *instance,
char* phase, const struct firmware **fw_p) char *phase, const struct firmware **fw_p)
{ {
struct usbatm_data *usbatm = instance->usbatm; struct usbatm_data *usbatm = instance->usbatm;
struct device *dev = &usbatm->usb_intf->dev; struct device *dev = &usbatm->usb_intf->dev;
......
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