treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 371
[linux-2.6-block.git] / drivers / media / dvb-frontends / stv6111.h
CommitLineData
3c01ad20 1/* SPDX-License-Identifier: GPL-2.0 */
29ff8406
DS
2/*
3 * Driver for the ST STV6111 tuner
4 *
5 * Copyright (C) 2014 Digital Devices GmbH
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * version 2 only, as published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
44173fda
DS
17#ifndef _STV6111_H_
18#define _STV6111_H_
19
20#if IS_REACHABLE(CONFIG_DVB_STV6111)
21
2af07a49
DS
22struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe,
23 struct i2c_adapter *i2c, u8 adr);
44173fda
DS
24
25#else
26
27static inline struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe,
2af07a49
DS
28 struct i2c_adapter *i2c,
29 u8 adr)
44173fda
DS
30{
31 pr_warn("%s: Driver disabled by Kconfig\n", __func__);
32 return NULL;
33}
34
35#endif /* CONFIG_DVB_STV6111 */
36
37#endif /* _STV6111_H_ */