]> git.baikalelectronics.ru Git - kernel.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)
commit74e881c75f4b73945029a4fcd7f5067d6a9b0edf
treedcb848b6fc93284bd4129f148539956c650c5be0
parent4c26103e8b393e8e755ad08418522072eb7aea6e
[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