18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Driver for the ST STV6111 tuner
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2014 Digital Devices GmbH
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or
88c2ecf20Sopenharmony_ci * modify it under the terms of the GNU General Public License
98c2ecf20Sopenharmony_ci * version 2 only, as published by the Free Software Foundation.
108c2ecf20Sopenharmony_ci *
118c2ecf20Sopenharmony_ci * This program is distributed in the hope that it will be useful,
128c2ecf20Sopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of
138c2ecf20Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
148c2ecf20Sopenharmony_ci * GNU General Public License for more details.
158c2ecf20Sopenharmony_ci */
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#ifndef _STV6111_H_
188c2ecf20Sopenharmony_ci#define _STV6111_H_
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_DVB_STV6111)
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_cistruct dvb_frontend *stv6111_attach(struct dvb_frontend *fe,
238c2ecf20Sopenharmony_ci				    struct i2c_adapter *i2c, u8 adr);
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#else
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_cistatic inline struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe,
288c2ecf20Sopenharmony_ci						  struct i2c_adapter *i2c,
298c2ecf20Sopenharmony_ci						  u8 adr)
308c2ecf20Sopenharmony_ci{
318c2ecf20Sopenharmony_ci	pr_warn("%s: Driver disabled by Kconfig\n", __func__);
328c2ecf20Sopenharmony_ci	return NULL;
338c2ecf20Sopenharmony_ci}
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci#endif /* CONFIG_DVB_STV6111 */
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci#endif /* _STV6111_H_ */
38