summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/dvb_usb.h
diff options
context:
space:
mode:
authorAntti Palosaari2012-06-16 02:17:04 +0200
committerMauro Carvalho Chehab2012-08-04 12:56:34 +0200
commitddee56943ab6df098e411fe943c2a52063fba0a5 (patch)
treedcb848b6fc93284bd4129f148539956c650c5be0 /drivers/media/dvb/dvb-usb/dvb_usb.h
parent[media] dvb_usb_v2: remove num_frontends_initialized from dvb_usb_adapter (diff)
downloadkernel-qcow2-linux-ddee56943ab6df098e411fe943c2a52063fba0a5.tar.gz
kernel-qcow2-linux-ddee56943ab6df098e411fe943c2a52063fba0a5.tar.xz
kernel-qcow2-linux-ddee56943ab6df098e411fe943c2a52063fba0a5.zip
[media] dvb_usb_v2: .read_mac_address() callback changes
Give DVB adapter as a parameter for callback. MAC address is adapter property and it could be (at least in theory) there is devices having multiple adapters and all has own MAC. Also add error handling. If callback fails error is returned which leads device unregister. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dvb_usb.h')
-rw-r--r--drivers/media/dvb/dvb-usb/dvb_usb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb_usb.h b/drivers/media/dvb/dvb-usb/dvb_usb.h
index 6392fd3d4164..e7015ce5b3b4 100644
--- a/drivers/media/dvb/dvb-usb/dvb_usb.h
+++ b/drivers/media/dvb/dvb-usb/dvb_usb.h
@@ -181,7 +181,7 @@ struct dvb_usb_device_properties {
int (*power_ctrl) (struct dvb_usb_device *, int);
int (*read_config) (struct dvb_usb_device *d);
- int (*read_mac_address) (struct dvb_usb_device *, u8 []);
+ int (*read_mac_address) (struct dvb_usb_adapter *, u8 []);
int (*frontend_attach) (struct dvb_usb_adapter *);
int (*tuner_attach) (struct dvb_usb_adapter *);
int (*frontend_ctrl) (struct dvb_frontend *, int);