48 lines
1.5 KiB
Diff
48 lines
1.5 KiB
Diff
From 0f39ef5618242df3310ab40bc62edb8dd6cf930e Mon Sep 17 00:00:00 2001
|
|
From: Manu Abraham <abraham.manu@gmail.com>
|
|
Date: Tue, 15 Dec 2009 09:01:27 -0300
|
|
Subject: [PATCH 109/120] V4L/DVB (13810): [MB86A16] Use DVB_* macros
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Manu Abraham <manu@linuxtv.org>
|
|
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
(cherry picked from commit 28fddb7cd5b7a12b81c8ec1a358749e60760e741)
|
|
|
|
Signed-off-by: Bjørn Mork <bjorn@mork.no>
|
|
---
|
|
drivers/media/dvb/frontends/mb86a16.h | 14 ++++++++++++++
|
|
1 files changed, 14 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/drivers/media/dvb/frontends/mb86a16.h b/drivers/media/dvb/frontends/mb86a16.h
|
|
index 68f25a6..a88a6a1 100644
|
|
--- a/drivers/media/dvb/frontends/mb86a16.h
|
|
+++ b/drivers/media/dvb/frontends/mb86a16.h
|
|
@@ -31,8 +31,22 @@ struct mb86a16_config {
|
|
int (*set_voltage)(struct dvb_frontend *fe, fe_sec_voltage_t voltage);
|
|
};
|
|
|
|
+
|
|
+
|
|
+#if defined(CONFIG_DVB_MB86A16) || (defined(CONFIG_DVB_MB86A16_MODULE) && defined(MODULE))
|
|
+
|
|
extern struct dvb_frontend *mb86a16_attach(const struct mb86a16_config *config,
|
|
struct i2c_adapter *i2c_adap);
|
|
|
|
+#else
|
|
+
|
|
+static inline struct dvb_frontend *mb86a16_attach(const struct mb86a16_config *config,
|
|
+ struct i2c_adapter *i2c_adap)
|
|
+{
|
|
+ printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
|
|
+ return NULL;
|
|
+}
|
|
+
|
|
+#endif /* CONFIG_DVB_MB86A16 */
|
|
|
|
#endif /* __MB86A16_H */
|
|
--
|
|
1.7.1
|
|
|