diff options
author | Daniel Scheller <d.scheller@gmx.net> | 2018-06-23 11:35:59 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-07-30 16:23:12 -0400 |
commit | d33be4327eea80b46701d2b71f15749ec793f92d (patch) | |
tree | 1ff3be5f7625d8443459afe3411855bd34020498 /drivers/media/pci/ddbridge/ddbridge-i2c.c | |
parent | f9dc3af8212b626a62103e7ba8cb3c84482334b8 (diff) |
media: ddbridge: probe for LNBH25 chips before attaching
In demod_attach_stv0910(), the LNBH25 IC is being blindly attached and,
if the result is bad, blindly attached on another possible I2C address.
The LNBH25 uses it's set_voltage function to test for the IC and will
print an error to the kernel log on failure. Prevent this by probing
the possible I2C address and use this (and only this) to attach the
LNBH25 I2C driver. This also allows the stv0910 attach function to be
a bit cleaner.
Picked up from the upstream dddvb GIT and adapted for the LNBH25 driver
variant from the kernel tree.
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/pci/ddbridge/ddbridge-i2c.c')
0 files changed, 0 insertions, 0 deletions