Merge branch 'hugepage-fallbacks' (hugepatch patches from David Rientjes)
[linux-2.6-block.git] / drivers / media / dvb-frontends / cx24113.h
CommitLineData
c942fddf 1/* SPDX-License-Identifier: GPL-2.0-or-later */
c9dd82c2 2/*
25985edc 3 * Driver for Conexant CX24113/CX24128 Tuner (Satellite)
c9dd82c2
PB
4 *
5 * Copyright (C) 2007-8 Patrick Boettcher <pb@linuxtv.org>
c9dd82c2
PB
6 */
7
8#ifndef CX24113_H
9#define CX24113_H
10
11struct dvb_frontend;
12
13struct cx24113_config {
14 u8 i2c_addr; /* 0x14 or 0x54 */
15
16 u32 xtal_khz;
17};
18
9b174527 19#if IS_REACHABLE(CONFIG_DVB_TUNER_CX24113)
4c48ae8e
PB
20extern struct dvb_frontend *cx24113_attach(struct dvb_frontend *,
21 const struct cx24113_config *config, struct i2c_adapter *i2c);
c9dd82c2 22
4c48ae8e
PB
23extern void cx24113_agc_callback(struct dvb_frontend *fe);
24#else
c9dd82c2
PB
25static inline struct dvb_frontend *cx24113_attach(struct dvb_frontend *fe,
26 const struct cx24113_config *config, struct i2c_adapter *i2c)
27{
28 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
29 return NULL;
30}
31
32static inline void cx24113_agc_callback(struct dvb_frontend *fe)
33{
34 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
35}
4c48ae8e 36#endif
c9dd82c2
PB
37
38#endif /* CX24113_H */