media: dvb-core: add helper functions for I2C binding
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 2 Mar 2018 15:21:16 +0000 (10:21 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 10:00:31 +0000 (05:00 -0500)
commit8f569c0b4e6b6bd5db1d09551b2df87d912f124e
treef8311565f09f55db349bf9937e46cb9f6ff56c68
parentf410b4093fdd4d8f4644d3d486afe3040eceef7b
media: dvb-core: add helper functions for I2C binding

The dvb_attach()/dvb_detach() methods are ugly hacks designed
to keep using the I2C low-level API. The proper way is to
do I2C bus bindings instead.

Several modules were already converted to use it. Yet,
it is painful to use it, as lots of code need to be
duplicated.

Make it easier by providing two new helper functions:
- dvb_module_probe()
- dvb_module_release()

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-core/dvbdev.c
include/media/dvbdev.h