sh_eth: fix EESIPR values for SH77{34|63}
[linux/fpc-iii.git] / drivers / media / dvb-frontends / mb86a20s.h
blobdfb02db2126c1061b00225c698d3305c8d3c9220
1 /*
2 * Fujitsu mb86a20s driver
4 * Copyright (C) 2010 Mauro Carvalho Chehab
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation version 2.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
16 #ifndef MB86A20S_H
17 #define MB86A20S_H
19 #include <linux/dvb/frontend.h>
21 /**
22 * struct mb86a20s_config - Define the per-device attributes of the frontend
24 * @fclk: Clock frequency. If zero, assumes the default
25 * (32.57142 Mhz)
26 * @demod_address: the demodulator's i2c address
27 * @is_serial: if true, TS is serial. Otherwise, TS is parallel
30 struct mb86a20s_config {
31 u32 fclk;
32 u8 demod_address;
33 bool is_serial;
36 #if IS_REACHABLE(CONFIG_DVB_MB86A20S)
37 extern struct dvb_frontend *mb86a20s_attach(const struct mb86a20s_config *config,
38 struct i2c_adapter *i2c);
39 extern struct i2c_adapter *mb86a20s_get_tuner_i2c_adapter(struct dvb_frontend *);
40 #else
41 static inline struct dvb_frontend *mb86a20s_attach(
42 const struct mb86a20s_config *config, struct i2c_adapter *i2c)
44 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
45 return NULL;
47 static inline struct i2c_adapter *
48 mb86a20s_get_tuner_i2c_adapter(struct dvb_frontend *fe)
50 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
51 return NULL;
53 #endif
55 #endif /* MB86A20S */