Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330571
b: refs/heads/master
c: 005bc3f
h: refs/heads/master
i:
  330569: 5845777
  330567: 8000c62
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Aug 4, 2012
1 parent 6a4e07f commit ed44448
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 649216704aaa1148c638346ec4c0dc71b164f521
refs/heads/master: 005bc3fce76b3bd7c0a583cf3e89ce11c87077cd
7 changes: 4 additions & 3 deletions trunk/drivers/media/dvb/dvb-usb/dvb_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,13 @@ struct dvb_usb_device_properties {
#define CYPRESS_FX2 3
int usb_ctrl;

int size_of_priv;

const char *firmware;
int (*get_firmware_name) (struct dvb_usb_device *, const char **);
#define RECONNECTS_USB 1
int (*download_firmware) (struct dvb_usb_device *,
const struct firmware *);
int (*get_firmware_name) (struct dvb_usb_device *, const char **);

int size_of_priv;

int num_adapters;
int (*get_adapter_count) (struct dvb_usb_device *);
Expand Down
10 changes: 7 additions & 3 deletions trunk/drivers/media/dvb/dvb-usb/dvb_usb_firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,13 @@ int dvb_usb_download_firmware(struct dvb_usb_device *d)
const struct firmware *fw = NULL;
const char *name;

ret = d->props.get_firmware_name(d, &name);
if (ret < 0)
return ret;
/* resolve firmware name */
name = d->props.firmware;
if (d->props.get_firmware_name) {
ret = d->props.get_firmware_name(d, &name);
if (ret < 0)
return ret;
}

ret = request_firmware(&fw, name, &d->udev->dev);
if (ret != 0) {
Expand Down

0 comments on commit ed44448

Please sign in to comment.