summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/stv6111.h
diff options
context:
space:
mode:
authorDaniel Scheller <d.scheller@gmx.net>2017-07-03 20:20:59 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-07-20 20:04:25 +0300
commit44173fda45ba25af84ae5c3e9b745bb286163730 (patch)
treeb90b34229fa1861251ee6fe920e65d895a069304 /drivers/media/dvb-frontends/stv6111.h
parent2f4675c00375864007968236b8f1fa6b636a809a (diff)
downloadlinux-44173fda45ba25af84ae5c3e9b745bb286163730.tar.xz
media: dvb-frontends: add ST STV6111 DVB-S/S2 tuner frontend driver
This adds a frontend driver for the ST STV6111 DVB-S/S2 tuners. Like the stv0910 demod frontend driver, this driver originates from the Digital Devices' dddvb vendor driver package as of version 0.9.29, and was cleaned up aswell. No functionality had to be removed though. Any camel case has been converted to kernel_case, fixup patch has been proposed upstream. Permission to reuse and mainline the driver code was formally granted by Ralph Metzler <rjkm@metzlerbros.de>. Signed-off-by: Daniel Scheller <d.scheller@gmx.net> Tested-by: Richard Scobie <r.scobie@clear.net.nz> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/stv6111.h')
-rw-r--r--drivers/media/dvb-frontends/stv6111.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/stv6111.h b/drivers/media/dvb-frontends/stv6111.h
new file mode 100644
index 000000000000..066dd70c9426
--- /dev/null
+++ b/drivers/media/dvb-frontends/stv6111.h
@@ -0,0 +1,20 @@
+#ifndef _STV6111_H_
+#define _STV6111_H_
+
+#if IS_REACHABLE(CONFIG_DVB_STV6111)
+
+extern struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe,
+ struct i2c_adapter *i2c, u8 adr);
+
+#else
+
+static inline struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe,
+ struct i2c_adapter *i2c, u8 adr)
+{
+ pr_warn("%s: Driver disabled by Kconfig\n", __func__);
+ return NULL;
+}
+
+#endif /* CONFIG_DVB_STV6111 */
+
+#endif /* _STV6111_H_ */