Merge tag 'rproc-v6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc...
[linux-block.git] / drivers / media / dvb-frontends / stv0910.h
CommitLineData
bbeae430 1/* SPDX-License-Identifier: GPL-2.0 */
1d9b5ff2
DS
2/*
3 * Driver for the ST STV0910 DVB-S/S2 demodulator.
4 *
5 * Copyright (C) 2014-2015 Ralph Metzler <rjkm@metzlerbros.de>
6 * Marcus Metzler <mocm@metzlerbros.de>
7 * developed for Digital Devices GmbH
1d9b5ff2
DS
8 */
9
cd21b334
DS
10#ifndef _STV0910_H_
11#define _STV0910_H_
12
13#include <linux/types.h>
14#include <linux/i2c.h>
15
16struct stv0910_cfg {
17 u32 clk;
18 u8 adr;
19 u8 parallel;
20 u8 rptlvl;
21 u8 single;
7069018e 22 u8 tsspeed;
cd21b334
DS
23};
24
25#if IS_REACHABLE(CONFIG_DVB_STV0910)
26
ddb6a90d
DS
27struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
28 struct stv0910_cfg *cfg, int nr);
cd21b334
DS
29
30#else
31
32static inline struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
33 struct stv0910_cfg *cfg,
34 int nr)
35{
36 pr_warn("%s: driver disabled by Kconfig\n", __func__);
37 return NULL;
38}
39
40#endif /* CONFIG_DVB_STV0910 */
41
42#endif /* _STV0910_H_ */