treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / media / tuners / tda9887.h
blob576bb09a5c85a2cee860b5199298311c19e9ae46
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 */
5 #ifndef __TDA9887_H__
6 #define __TDA9887_H__
8 #include <linux/i2c.h>
9 #include <media/dvb_frontend.h>
11 /* ------------------------------------------------------------------------ */
12 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_TDA9887)
13 extern struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe,
14 struct i2c_adapter *i2c_adap,
15 u8 i2c_addr);
16 #else
17 static inline struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe,
18 struct i2c_adapter *i2c_adap,
19 u8 i2c_addr)
21 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
22 return NULL;
24 #endif
26 #endif /* __TDA9887_H__ */