summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dibusb/dvb-dibusb-firmware.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/dibusb/dvb-dibusb-firmware.c')
-rw-r--r--linux/drivers/media/dvb/dibusb/dvb-dibusb-firmware.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/linux/drivers/media/dvb/dibusb/dvb-dibusb-firmware.c b/linux/drivers/media/dvb/dibusb/dvb-dibusb-firmware.c
index c8a0efaf4..b27faf31c 100644
--- a/linux/drivers/media/dvb/dibusb/dvb-dibusb-firmware.c
+++ b/linux/drivers/media/dvb/dibusb/dvb-dibusb-firmware.c
@@ -1,5 +1,5 @@
/*
- * dvb-dibusb-firmware.c is part of the driver for mobile USB Budget DVB-T devices
+ * dvb-dibusb-firmware.c is part of the driver for mobile USB Budget DVB-T devices
* based on reference design made by DiBcom (http://www.dibcom.fr/)
*
* Copyright (C) 2004-5 Patrick Boettcher (patrick.boettcher@desy.de)
@@ -14,7 +14,7 @@
#include <linux/usb.h>
/*
- * load a firmware packet to the device
+ * load a firmware packet to the device
*/
static int dibusb_writemem(struct usb_device *udev,u16 addr,u8 *data, u8 len)
{
@@ -28,7 +28,7 @@ int dibusb_loadfirmware(struct usb_device *udev, struct dibusb_usb_device *dibde
u16 addr;
u8 *b,*p;
int ret = 0,i;
-
+
if ((ret = request_firmware(&fw, dibdev->dev_cl->firmware, &udev->dev)) != 0) {
err("did not find the firmware file. (%s) "
"Please see linux/Documentation/dvb/ for more details on firmware-problems.",
@@ -37,12 +37,12 @@ int dibusb_loadfirmware(struct usb_device *udev, struct dibusb_usb_device *dibde
}
info("downloading firmware from file '%s'.",dibdev->dev_cl->firmware);
-
- p = kmalloc(fw->size,GFP_KERNEL);
+
+ p = kmalloc(fw->size,GFP_KERNEL);
if (p != NULL) {
u8 reset;
/*
- * you cannot use the fw->data as buffer for
+ * you cannot use the fw->data as buffer for
* usb_control_msg, a new buffer has to be
* created
*/
@@ -50,14 +50,14 @@ int dibusb_loadfirmware(struct usb_device *udev, struct dibusb_usb_device *dibde
/* stop the CPU */
reset = 1;
- if ((ret = dibusb_writemem(udev,dibdev->dev_cl->usb_ctrl->cpu_cs_register,&reset,1)) != 1)
+ if ((ret = dibusb_writemem(udev,dibdev->dev_cl->usb_ctrl->cpu_cs_register,&reset,1)) != 1)
err("could not stop the USB controller CPU.");
- for(i = 0; p[i+3] == 0 && i < fw->size; ) {
+ for(i = 0; p[i+3] == 0 && i < fw->size; ) {
b = (u8 *) &p[i];
addr = *((u16 *) &b[1]);
ret = dibusb_writemem(udev,addr,&b[4],b[0]);
-
+
if (ret != b[0]) {
err("error while transferring firmware "
"(transferred size: %d, block size: %d)",
@@ -78,7 +78,7 @@ int dibusb_loadfirmware(struct usb_device *udev, struct dibusb_usb_device *dibde
}
kfree(p);
- } else {
+ } else {
ret = -ENOMEM;
}
release_firmware(fw);