media: ddbridge: use common DVB I2C client handling helpers
authorDaniel Scheller <d.scheller@gmx.net>
Wed, 7 Mar 2018 20:07:55 +0000 (15:07 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 8 Mar 2018 11:06:51 +0000 (06:06 -0500)
commitc966453b1386136e47f7c45a6d3b66f4013f974d
treebc29de5c5d0dbd836617d87d726d00c141bdb8ec
parenta31b86b17681fd2b888b11981222b472541d4a4d
media: ddbridge: use common DVB I2C client handling helpers

Instead of keeping duplicated I2C client handling construct, make use of
the newly introduced dvb_module_*() helpers. This not only keeps things
way cleaner and removes the need for duplicated I2C client attach code,
but even allows to get rid of some variables that won't help in making
things look cleaner anymore.

The check on a valid ptr on port->en isn't really needed since the cxd2099
driver will set it at a time where it is going to return successfully
from probing.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/ddbridge/ddbridge-ci.c
drivers/media/pci/ddbridge/ddbridge-core.c