[media] use a function for DVB media controller register
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Mar 2015 14:26:14 +0000 (11:26 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Mar 2015 14:29:39 +0000 (11:29 -0300)
commit89a2c1d60aa2cfcf4c9f194b4c923d72182be431
tree7f459e266ff9e16a407f190cccc4180419828811
parent872b9dbedd4040f4511c909a09d39330624f057b
[media] use a function for DVB media controller register

This is really a simple function, but using it avoids to have
if's inside the drivers.

Also, the kABI becomes a little more clearer.

This shouldn't generate any overhead, and the type check
will happen when compiling with MC DVB enabled.

So, let's do it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/common/siano/smsdvb-main.c
drivers/media/dvb-core/dvbdev.h
drivers/media/usb/cx231xx/cx231xx-dvb.c
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
drivers/media/usb/dvb-usb/dvb-usb-dvb.c