summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/stv090x.h
diff options
context:
space:
mode:
authorTobias Klausmann <tobias.johannes.klausmann@mni.thm.de>2019-05-29 14:02:06 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-06-10 15:01:38 -0400
commiteb5005df886b3989dde5378064cc23315f769290 (patch)
tree5dffdcc2d2db09be585d510a54be084e4deff110 /drivers/media/dvb-frontends/stv090x.h
parent3c8f4cd271c486844e8eccebaf6714d913180ecc (diff)
downloadlinux-eb5005df886b3989dde5378064cc23315f769290.tar.bz2
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.h3
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)