treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / media / dvb-frontends / tda665x.h
blobb75096c7ae4755663aac23b5684a5982306b51c3
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 TDA665x tuner driver
4 Copyright (C) Manu Abraham (abraham.manu@gmail.com)
6 */
8 #ifndef __TDA665x_H
9 #define __TDA665x_H
11 struct tda665x_config {
12 char name[128];
14 u8 addr;
15 u32 frequency_min;
16 u32 frequency_max;
17 u32 frequency_offst;
18 u32 ref_multiplier;
19 u32 ref_divider;
22 #if IS_REACHABLE(CONFIG_DVB_TDA665x)
24 extern struct dvb_frontend *tda665x_attach(struct dvb_frontend *fe,
25 const struct tda665x_config *config,
26 struct i2c_adapter *i2c);
28 #else
30 static inline struct dvb_frontend *tda665x_attach(struct dvb_frontend *fe,
31 const struct tda665x_config *config,
32 struct i2c_adapter *i2c)
34 printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
35 return NULL;
38 #endif /* CONFIG_DVB_TDA665x */
40 #endif /* __TDA665x_H */