|
@@ -104,6 +104,11 @@ struct stv090x_config {
|
|
|
extern struct dvb_frontend *stv090x_attach(const struct stv090x_config *config,
|
|
|
struct i2c_adapter *i2c,
|
|
|
enum stv090x_demodulator demod);
|
|
|
+
|
|
|
+/* dir = 0 -> output, dir = 1 -> input/open-drain */
|
|
|
+extern int stv090x_set_gpio(struct dvb_frontend *fe, u8 gpio,
|
|
|
+ u8 dir, u8 value, u8 xor_value);
|
|
|
+
|
|
|
#else
|
|
|
|
|
|
static 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
|
|
|
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
|
|
|
return NULL;
|
|
|
}
|
|
|
+
|
|
|
+static inline int stv090x_set_gpio(struct dvb_frontend *fe, u8 gpio,
|
|
|
+ u8 opd, u8 value, u8 xor_value)
|
|
|
+{
|
|
|
+ printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
|
|
|
+ return -ENODEV;
|
|
|
+}
|
|
|
#endif /* CONFIG_DVB_STV090x */
|
|
|
|
|
|
#endif /* __STV090x_H */
|