gpio: rcar: Fix runtime PM imbalance on error
[linux/fpc-iii.git] / drivers / media / dvb-frontends / cx24113.h
blobc5460c2aec7bad2d654c07647d593347ef951669
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Driver for Conexant CX24113/CX24128 Tuner (Satellite)
5 * Copyright (C) 2007-8 Patrick Boettcher <pb@linuxtv.org>
6 */
8 #ifndef CX24113_H
9 #define CX24113_H
11 struct dvb_frontend;
13 struct cx24113_config {
14 u8 i2c_addr; /* 0x14 or 0x54 */
16 u32 xtal_khz;
19 #if IS_REACHABLE(CONFIG_DVB_TUNER_CX24113)
20 extern struct dvb_frontend *cx24113_attach(struct dvb_frontend *,
21 const struct cx24113_config *config, struct i2c_adapter *i2c);
23 extern void cx24113_agc_callback(struct dvb_frontend *fe);
24 #else
25 static inline struct dvb_frontend *cx24113_attach(struct dvb_frontend *fe,
26 const struct cx24113_config *config, struct i2c_adapter *i2c)
28 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
29 return NULL;
32 static inline void cx24113_agc_callback(struct dvb_frontend *fe)
34 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
36 #endif
38 #endif /* CX24113_H */