diff options
author | 2015-03-26 20:20:42 -0300 | |
---|---|---|
committer | 2015-06-10 10:58:48 -0300 | |
commit | e6ad9ce3e96bb446c6cf0e83a43888e7f30b84ad (patch) | |
tree | 10fb29d9941d09277ad6034b8e217bf41d06be8c /drivers/media/dvb-frontends/ts2020.h | |
parent | [media] ts2020: improve filter limit calc (diff) | |
download | linux-e6ad9ce3e96bb446c6cf0e83a43888e7f30b84ad.tar.gz linux-e6ad9ce3e96bb446c6cf0e83a43888e7f30b84ad.tar.bz2 linux-e6ad9ce3e96bb446c6cf0e83a43888e7f30b84ad.zip |
[media] ts2020: register I2C driver from legacy media attach
Register driver using I2C bindings internally when legacy media
attach is used. That is done by registering driver using I2C binding
from legacy attach. That way we can get valid I2C client, which is
needed for proper dev_() logging and regmap for example even legacy
binding is used.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/ts2020.h')
-rw-r--r-- | drivers/media/dvb-frontends/ts2020.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/ts2020.h b/drivers/media/dvb-frontends/ts2020.h index 1714af94eca2..f40bbcf9f6eb 100644 --- a/drivers/media/dvb-frontends/ts2020.h +++ b/drivers/media/dvb-frontends/ts2020.h @@ -52,10 +52,15 @@ struct ts2020_config { * pointer to DVB frontend */ struct dvb_frontend *fe; + + /* + * driver private, do not set value + */ + u8 attach_in_use:1; }; +/* Do not add new ts2020_attach() users! Use I2C bindings instead. */ #if IS_REACHABLE(CONFIG_DVB_TS2020) - extern struct dvb_frontend *ts2020_attach( struct dvb_frontend *fe, const struct ts2020_config *config, |