treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / media / dvb-frontends / stv6111.h
blob49e821ac9954b54cd932a1915fce94368672537f
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Driver for the ST STV6111 tuner
5 * Copyright (C) 2014 Digital Devices GmbH
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.
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.
17 #ifndef _STV6111_H_
18 #define _STV6111_H_
20 #if IS_REACHABLE(CONFIG_DVB_STV6111)
22 struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe,
23 struct i2c_adapter *i2c, u8 adr);
25 #else
27 static inline struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe,
28 struct i2c_adapter *i2c,
29 u8 adr)
31 pr_warn("%s: Driver disabled by Kconfig\n", __func__);
32 return NULL;
35 #endif /* CONFIG_DVB_STV6111 */
37 #endif /* _STV6111_H_ */