aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/stv090x.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/stv090x.h')
-rw-r--r--drivers/media/dvb/frontends/stv090x.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/stv090x.h b/drivers/media/dvb/frontends/stv090x.h
index dd1b93ae4e9d..11754f2f6437 100644
--- a/drivers/media/dvb/frontends/stv090x.h
+++ b/drivers/media/dvb/frontends/stv090x.h
@@ -104,6 +104,11 @@ struct stv090x_config {
104extern struct dvb_frontend *stv090x_attach(const struct stv090x_config *config, 104extern struct dvb_frontend *stv090x_attach(const struct stv090x_config *config,
105 struct i2c_adapter *i2c, 105 struct i2c_adapter *i2c,
106 enum stv090x_demodulator demod); 106 enum stv090x_demodulator demod);
107
108/* dir = 0 -> output, dir = 1 -> input/open-drain */
109extern int stv090x_set_gpio(struct dvb_frontend *fe, u8 gpio,
110 u8 dir, u8 value, u8 xor_value);
111
107#else 112#else
108 113
109static inline struct dvb_frontend *stv090x_attach(const struct stv090x_config *config, 114static inline struct dvb_frontend *stv090x_attach(const struct stv090x_config *config,
@@ -113,6 +118,13 @@ static inline struct dvb_frontend *stv090x_attach(const struct stv090x_config *c
113 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 118 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
114 return NULL; 119 return NULL;
115} 120}
121
122static inline int stv090x_set_gpio(struct dvb_frontend *fe, u8 gpio,
123 u8 opd, u8 value, u8 xor_value)
124{
125 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
126 return -ENODEV;
127}
116#endif /* CONFIG_DVB_STV090x */ 128#endif /* CONFIG_DVB_STV090x */
117 129
118#endif /* __STV090x_H */ 130#endif /* __STV090x_H */