Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / dvb-frontends / stv0910.h
blob24ecc6902235460c99018f39e54e9ddf456db949
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Driver for the ST STV0910 DVB-S/S2 demodulator.
5 * Copyright (C) 2014-2015 Ralph Metzler <rjkm@metzlerbros.de>
6 * Marcus Metzler <mocm@metzlerbros.de>
7 * developed for Digital Devices GmbH
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * version 2 only, as published by the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
19 #ifndef _STV0910_H_
20 #define _STV0910_H_
22 #include <linux/types.h>
23 #include <linux/i2c.h>
25 struct stv0910_cfg {
26 u32 clk;
27 u8 adr;
28 u8 parallel;
29 u8 rptlvl;
30 u8 single;
31 u8 tsspeed;
34 #if IS_REACHABLE(CONFIG_DVB_STV0910)
36 struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
37 struct stv0910_cfg *cfg, int nr);
39 #else
41 static inline struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
42 struct stv0910_cfg *cfg,
43 int nr)
45 pr_warn("%s: driver disabled by Kconfig\n", __func__);
46 return NULL;
49 #endif /* CONFIG_DVB_STV0910 */
51 #endif /* _STV0910_H_ */