treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / media / dvb-frontends / ec100.h
blob398dba65f6e63c2a0a3f5774d04477a9e248a3ad
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * E3C EC100 demodulator driver
5 * Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
6 */
8 #ifndef EC100_H
9 #define EC100_H
11 #include <linux/dvb/frontend.h>
13 struct ec100_config {
14 /* demodulator's I2C address */
15 u8 demod_address;
19 #if IS_REACHABLE(CONFIG_DVB_EC100)
20 extern struct dvb_frontend *ec100_attach(const struct ec100_config *config,
21 struct i2c_adapter *i2c);
22 #else
23 static inline struct dvb_frontend *ec100_attach(
24 const struct ec100_config *config, struct i2c_adapter *i2c)
26 pr_warn("%s: driver disabled by Kconfig\n", __func__);
27 return NULL;
29 #endif
31 #endif /* EC100_H */