Daniel Scheller | 3c01ad2 | 2018-06-19 14:50:16 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Daniel Scheller | 29ff840 | 2018-06-19 14:50:15 -0400 | [diff] [blame] | 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 | |
Daniel Scheller | 44173fd | 2017-07-03 13:20:59 -0400 | [diff] [blame] | 17 | #ifndef _STV6111_H_ |
| 18 | #define _STV6111_H_ |
| 19 | |
| 20 | #if IS_REACHABLE(CONFIG_DVB_STV6111) |
| 21 | |
Daniel Scheller | 2af07a4 | 2017-07-23 06:13:13 -0400 | [diff] [blame] | 22 | struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe, |
| 23 | struct i2c_adapter *i2c, u8 adr); |
Daniel Scheller | 44173fd | 2017-07-03 13:20:59 -0400 | [diff] [blame] | 24 | |
| 25 | #else |
| 26 | |
| 27 | static inline struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe, |
Daniel Scheller | 2af07a4 | 2017-07-23 06:13:13 -0400 | [diff] [blame] | 28 | struct i2c_adapter *i2c, |
| 29 | u8 adr) |
Daniel Scheller | 44173fd | 2017-07-03 13:20:59 -0400 | [diff] [blame] | 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_ */ |