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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
2f4675c003
commit
44173fda45
20
drivers/media/dvb-frontends/stv6111.h
Normal file
20
drivers/media/dvb-frontends/stv6111.h
Normal file
@@ -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_ */
|
Reference in New Issue
Block a user