Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mb86a20s.h
Go to the documentation of this file.
1 /*
2  * Fujitsu mb86a20s driver
3  *
4  * Copyright (C) 2010 Mauro Carvalho Chehab <[email protected]>
5  *
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.
9  *
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.
14  */
15 
16 #ifndef MB86A20S_H
17 #define MB86A20S_H
18 
19 #include <linux/dvb/frontend.h>
20 
29  bool is_serial;
30 };
31 
32 #if defined(CONFIG_DVB_MB86A20S) || (defined(CONFIG_DVB_MB86A20S_MODULE) \
33  && defined(MODULE))
34 extern struct dvb_frontend *mb86a20s_attach(const struct mb86a20s_config *config,
35  struct i2c_adapter *i2c);
36 extern struct i2c_adapter *mb86a20s_get_tuner_i2c_adapter(struct dvb_frontend *);
37 #else
38 static inline struct dvb_frontend *mb86a20s_attach(
39  const struct mb86a20s_config *config, struct i2c_adapter *i2c)
40 {
41  printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
42  return NULL;
43 }
44 static struct i2c_adapter *
45  mb86a20s_get_tuner_i2c_adapter(struct dvb_frontend *fe)
46 {
47  printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
48  return NULL;
49 }
50 #endif
51 
52 #endif /* MB86A20S */