ARC: thp: unbork !CONFIG_TRANSPARENT_HUGEPAGE build
[linux/fpc-iii.git] / drivers / media / dvb-frontends / cxd2841er.h
blob3472bdd589493df03880027e24979b8649bc6589
1 /*
2 * cxd2841er.h
4 * Sony CXD2441ER digital demodulator driver public definitions
6 * Copyright 2012 Sony Corporation
7 * Copyright (C) 2014 NetUP Inc.
8 * Copyright (C) 2014 Sergey Kozlov <serjk@netup.ru>
9 * Copyright (C) 2014 Abylay Ospan <aospan@netup.ru>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
22 #ifndef CXD2841ER_H
23 #define CXD2841ER_H
25 #include <linux/kconfig.h>
26 #include <linux/dvb/frontend.h>
28 struct cxd2841er_config {
29 u8 i2c_addr;
32 #if IS_REACHABLE(CONFIG_DVB_CXD2841ER)
33 extern struct dvb_frontend *cxd2841er_attach_s(struct cxd2841er_config *cfg,
34 struct i2c_adapter *i2c);
36 extern struct dvb_frontend *cxd2841er_attach_t(struct cxd2841er_config *cfg,
37 struct i2c_adapter *i2c);
39 extern struct dvb_frontend *cxd2841er_attach_c(struct cxd2841er_config *cfg,
40 struct i2c_adapter *i2c);
41 #else
42 static inline struct dvb_frontend *cxd2841er_attach_s(
43 struct cxd2841er_config *cfg,
44 struct i2c_adapter *i2c)
46 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
47 return NULL;
50 static inline struct dvb_frontend *cxd2841er_attach_t(
51 struct cxd2841er_config *cfg, struct i2c_adapter *i2c)
53 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
54 return NULL;
57 static inline struct dvb_frontend *cxd2841er_attach_c(
58 struct cxd2841er_config *cfg, struct i2c_adapter *i2c)
60 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
61 return NULL;
63 #endif
65 #endif