Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Driver for the ST STV0910 DVB-S/S2 demodulator.
0004  *
0005  * Copyright (C) 2014-2015 Ralph Metzler <rjkm@metzlerbros.de>
0006  *                         Marcus Metzler <mocm@metzlerbros.de>
0007  *                         developed for Digital Devices GmbH
0008  */
0009 
0010 #ifndef _STV0910_H_
0011 #define _STV0910_H_
0012 
0013 #include <linux/types.h>
0014 #include <linux/i2c.h>
0015 
0016 struct stv0910_cfg {
0017     u32 clk;
0018     u8  adr;
0019     u8  parallel;
0020     u8  rptlvl;
0021     u8  single;
0022     u8  tsspeed;
0023 };
0024 
0025 #if IS_REACHABLE(CONFIG_DVB_STV0910)
0026 
0027 struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
0028                     struct stv0910_cfg *cfg, int nr);
0029 
0030 #else
0031 
0032 static inline struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
0033                           struct stv0910_cfg *cfg,
0034                           int nr)
0035 {
0036     pr_warn("%s: driver disabled by Kconfig\n", __func__);
0037     return NULL;
0038 }
0039 
0040 #endif /* CONFIG_DVB_STV0910 */
0041 
0042 #endif /* _STV0910_H_ */