blob: a47ed894d4aec9bcec67479a4767dcbf502f1208 [file] [log] [blame]
Mauro Carvalho Chehab3a509bb2010-09-10 16:49:47 -03001/*
2 * Sharp s921 driver
3 *
Mauro Carvalho Chehab37e59f82014-02-07 08:03:07 -02004 * Copyright (C) 2009 Mauro Carvalho Chehab
Mauro Carvalho Chehab3a509bb2010-09-10 16:49:47 -03005 * Copyright (C) 2009 Douglas Landgraf <dougsland@redhat.com>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation version 2.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 */
16
17#ifndef S921_H
18#define S921_H
19
20#include <linux/dvb/frontend.h>
21
22struct s921_config {
23 /* the demodulator's i2c address */
24 u8 demod_address;
25};
26
Arnd Bergmann9b174522015-02-18 14:12:42 -030027#if IS_REACHABLE(CONFIG_DVB_S921)
Mauro Carvalho Chehab3a509bb2010-09-10 16:49:47 -030028extern struct dvb_frontend *s921_attach(const struct s921_config *config,
29 struct i2c_adapter *i2c);
30extern struct i2c_adapter *s921_get_tuner_i2c_adapter(struct dvb_frontend *);
31#else
32static inline struct dvb_frontend *s921_attach(
33 const struct s921_config *config, struct i2c_adapter *i2c)
34{
35 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
36 return NULL;
37}
Hans Verkuil8b012fc2015-04-27 04:29:53 -030038static inline struct i2c_adapter *
Mauro Carvalho Chehab3a509bb2010-09-10 16:49:47 -030039 s921_get_tuner_i2c_adapter(struct dvb_frontend *fe)
40{
41 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
42 return NULL;
43}
44#endif
45
46#endif /* S921_H */