summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/stv6110x_priv.h
diff options
context:
space:
mode:
authorTobias Klausmann <tobias.johannes.klausmann@mni.thm.de>2019-05-29 19:56:33 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-06-10 21:59:04 +0300
commit3c8f4cd271c486844e8eccebaf6714d913180ecc (patch)
treeb51e13bbf859e081bc59c6037ccc02d0f309a62d /drivers/media/dvb-frontends/stv6110x_priv.h
parent2659417876d58d58ec53a586d174f4fa18cc5352 (diff)
downloadlinux-3c8f4cd271c486844e8eccebaf6714d913180ecc.tar.xz
media: stv6110x: Implement probe/remove for stv6110x
Refactor out the common parts of stv6110x_probe() and stv6110x_attach() into separate functions. This provides the needed functionality to use dvb_module_probe() instead of dvb_attach()! 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/stv6110x_priv.h')
-rw-r--r--drivers/media/dvb-frontends/stv6110x_priv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/stv6110x_priv.h b/drivers/media/dvb-frontends/stv6110x_priv.h
index 909094df28df..b27769558f78 100644
--- a/drivers/media/dvb-frontends/stv6110x_priv.h
+++ b/drivers/media/dvb-frontends/stv6110x_priv.h
@@ -54,11 +54,12 @@
#define REFCLOCK_MHz (stv6110x->config->refclk / 1000000)
struct stv6110x_state {
+ struct dvb_frontend *frontend;
struct i2c_adapter *i2c;
const struct stv6110x_config *config;
u8 regs[8];
- const struct stv6110x_devctl *devctl;
+ struct stv6110x_devctl *devctl;
};
#endif /* __STV6110x_PRIV_H */