treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / media / tuners / mt2063.h
blob30d03cd76061449ee814f04073020482a776925b
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __MT2063_H__
3 #define __MT2063_H__
5 #include <media/dvb_frontend.h>
7 struct mt2063_config {
8 u8 tuner_address;
9 u32 refclock;
12 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2063)
13 struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
14 struct mt2063_config *config,
15 struct i2c_adapter *i2c);
17 #else
19 static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
20 struct mt2063_config *config,
21 struct i2c_adapter *i2c)
23 printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
24 return NULL;
27 #endif /* CONFIG_DVB_MT2063 */
29 #endif /* __MT2063_H__ */