]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97cfea32f3d3c46b748c2e962108d1314ac52711
treebc29de5c5d0dbd836617d87d726d00c141bdb8ec
parentb7d00287a30bb0ba5190c4f95dd339d0d9ac6109
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