gpio: rcar: Fix runtime PM imbalance on error
[linux/fpc-iii.git] / drivers / media / dvb-frontends / cx22700.h
blob178dd6b3aff22cc3b5dfc7b9bc37c5bf99a42315
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 Conexant CX22700 DVB OFDM demodulator driver
5 Copyright (C) 2001-2002 Convergence Integrated Media GmbH
6 Holger Waechtler <holger@convergence.de>
9 */
11 #ifndef CX22700_H
12 #define CX22700_H
14 #include <linux/dvb/frontend.h>
16 struct cx22700_config
18 /* the demodulator's i2c address */
19 u8 demod_address;
22 #if IS_REACHABLE(CONFIG_DVB_CX22700)
23 extern struct dvb_frontend* cx22700_attach(const struct cx22700_config* config,
24 struct i2c_adapter* i2c);
25 #else
26 static inline struct dvb_frontend* cx22700_attach(const struct cx22700_config* config,
27 struct i2c_adapter* i2c)
29 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
30 return NULL;
32 #endif // CONFIG_DVB_CX22700
34 #endif // CX22700_H