diff options
author | Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> | 2019-05-29 20:02:06 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-06-10 21:01:38 +0200 |
commit | eb5005df886b3989dde5378064cc23315f769290 (patch) | |
tree | 5dffdcc2d2db09be585d510a54be084e4deff110 /drivers/media/dvb-frontends/stv090x.h | |
parent | media: stv6110x: Implement probe/remove for stv6110x (diff) | |
download | linux-eb5005df886b3989dde5378064cc23315f769290.tar.xz linux-eb5005df886b3989dde5378064cc23315f769290.zip |
media: stv090x: Implement probe/remove for stv090x
Move common code into a new function.
This provides the needed functionality to use dvb_module_probe() instead
of dvb_attach()!
[mchehab+samsung@kernel.org: fix an out of order error return code]
Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/dvb-frontends/stv090x.h')
-rw-r--r-- | drivers/media/dvb-frontends/stv090x.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/stv090x.h b/drivers/media/dvb-frontends/stv090x.h index 13f251a08abd..89f45d9fa427 100644 --- a/drivers/media/dvb-frontends/stv090x.h +++ b/drivers/media/dvb-frontends/stv090x.h @@ -57,6 +57,7 @@ struct stv090x_config { enum stv090x_device device; enum stv090x_mode demod_mode; enum stv090x_clkmode clk_mode; + enum stv090x_demodulator demod; u32 xtal; /* default: 8000000 */ u8 address; /* default: 0x68 */ @@ -93,6 +94,8 @@ struct stv090x_config { /* dir = 0 -> output, dir = 1 -> input/open-drain */ int (*set_gpio)(struct dvb_frontend *fe, u8 gpio, u8 dir, u8 value, u8 xor_value); + + struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *i2c); }; #if IS_REACHABLE(CONFIG_DVB_STV090x) |