]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] dvb_usb_v2: .read_mac_address() callback changes
authorAntti Palosaari <crope@iki.fi>
Sat, 16 Jun 2012 00:17:04 +0000 (21:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 4 Aug 2012 10:56:34 +0000 (07:56 -0300)
commitddee56943ab6df098e411fe943c2a52063fba0a5
treedcb848b6fc93284bd4129f148539956c650c5be0
parentdd5e52cdf9e2518e79b634fa2ae1cc86e37cff14
[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>
drivers/media/dvb/dvb-usb/dvb_usb.h
drivers/media/dvb/dvb-usb/dvb_usb_dvb.c