blob: 49e821ac9954b54cd932a1915fce94368672537f [file] [log] [blame]
Daniel Scheller3c01ad22018-06-19 14:50:16 -04001/* SPDX-License-Identifier: GPL-2.0 */
Daniel Scheller29ff8402018-06-19 14:50:15 -04002/*
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
Daniel Scheller44173fd2017-07-03 13:20:59 -040017#ifndef _STV6111_H_
18#define _STV6111_H_
19
20#if IS_REACHABLE(CONFIG_DVB_STV6111)
21
Daniel Scheller2af07a42017-07-23 06:13:13 -040022struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe,
23 struct i2c_adapter *i2c, u8 adr);
Daniel Scheller44173fd2017-07-03 13:20:59 -040024
25#else
26
27static inline struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe,
Daniel Scheller2af07a42017-07-23 06:13:13 -040028 struct i2c_adapter *i2c,
29 u8 adr)
Daniel Scheller44173fd2017-07-03 13:20:59 -040030{
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_ */