media: dvb-frontends/stv0910: cleanup and fix licensing boilerplates
[linux-2.6-block.git] / drivers / media / dvb-frontends / stv0910.h
CommitLineData
1d9b5ff2
DS
1/*
2 * Driver for the ST STV0910 DVB-S/S2 demodulator.
3 *
4 * Copyright (C) 2014-2015 Ralph Metzler <rjkm@metzlerbros.de>
5 * Marcus Metzler <mocm@metzlerbros.de>
6 * developed for Digital Devices GmbH
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * version 2 only, as published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 */
17
cd21b334
DS
18#ifndef _STV0910_H_
19#define _STV0910_H_
20
21#include <linux/types.h>
22#include <linux/i2c.h>
23
24struct stv0910_cfg {
25 u32 clk;
26 u8 adr;
27 u8 parallel;
28 u8 rptlvl;
29 u8 single;
7069018e 30 u8 tsspeed;
cd21b334
DS
31};
32
33#if IS_REACHABLE(CONFIG_DVB_STV0910)
34
ddb6a90d
DS
35struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
36 struct stv0910_cfg *cfg, int nr);
cd21b334
DS
37
38#else
39
40static inline struct dvb_frontend *stv0910_attach(struct i2c_adapter *i2c,
41 struct stv0910_cfg *cfg,
42 int nr)
43{
44 pr_warn("%s: driver disabled by Kconfig\n", __func__);
45 return NULL;
46}
47
48#endif /* CONFIG_DVB_STV0910 */
49
50#endif /* _STV0910_H_ */