[PATCH] v4l: hybrid dvb: fix warnings with -Wundef
This patch adds a missing #ifdef to saa7134-dvb.c (thanks to Mauro Carvalho Chehab) and changes #if to #ifdef in both files. Signed-off-by: Michael Krufky <mkrufky@m1k.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Родитель
d975872c5c
Коммит
0b1cd0c774
|
@ -38,17 +38,17 @@
|
||||||
#include "cx88.h"
|
#include "cx88.h"
|
||||||
#include "dvb-pll.h"
|
#include "dvb-pll.h"
|
||||||
|
|
||||||
#if CONFIG_DVB_MT352
|
#ifdef CONFIG_DVB_MT352
|
||||||
# include "mt352.h"
|
# include "mt352.h"
|
||||||
# include "mt352_priv.h"
|
# include "mt352_priv.h"
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_DVB_CX22702
|
#ifdef CONFIG_DVB_CX22702
|
||||||
# include "cx22702.h"
|
# include "cx22702.h"
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_DVB_OR51132
|
#ifdef CONFIG_DVB_OR51132
|
||||||
# include "or51132.h"
|
# include "or51132.h"
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_DVB_LGDT3302
|
#ifdef CONFIG_DVB_LGDT3302
|
||||||
# include "lgdt3302.h"
|
# include "lgdt3302.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ static struct videobuf_queue_ops dvb_qops = {
|
||||||
|
|
||||||
/* ------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------ */
|
||||||
|
|
||||||
#if CONFIG_DVB_MT352
|
#ifdef CONFIG_DVB_MT352
|
||||||
static int dvico_fusionhdtv_demod_init(struct dvb_frontend* fe)
|
static int dvico_fusionhdtv_demod_init(struct dvb_frontend* fe)
|
||||||
{
|
{
|
||||||
static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x39 };
|
static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x39 };
|
||||||
|
@ -177,7 +177,7 @@ static struct mt352_config dntv_live_dvbt_config = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_DVB_CX22702
|
#ifdef CONFIG_DVB_CX22702
|
||||||
static struct cx22702_config connexant_refboard_config = {
|
static struct cx22702_config connexant_refboard_config = {
|
||||||
.demod_address = 0x43,
|
.demod_address = 0x43,
|
||||||
.output_mode = CX22702_SERIAL_OUTPUT,
|
.output_mode = CX22702_SERIAL_OUTPUT,
|
||||||
|
@ -193,7 +193,7 @@ static struct cx22702_config hauppauge_novat_config = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_DVB_OR51132
|
#ifdef CONFIG_DVB_OR51132
|
||||||
static int or51132_set_ts_param(struct dvb_frontend* fe,
|
static int or51132_set_ts_param(struct dvb_frontend* fe,
|
||||||
int is_punctured)
|
int is_punctured)
|
||||||
{
|
{
|
||||||
|
@ -210,7 +210,7 @@ static struct or51132_config pchdtv_hd3000 = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_DVB_LGDT3302
|
#ifdef CONFIG_DVB_LGDT3302
|
||||||
static int lgdt3302_pll_set(struct dvb_frontend* fe,
|
static int lgdt3302_pll_set(struct dvb_frontend* fe,
|
||||||
struct dvb_frontend_parameters* params,
|
struct dvb_frontend_parameters* params,
|
||||||
u8* pllbuf)
|
u8* pllbuf)
|
||||||
|
@ -261,7 +261,7 @@ static int dvb_register(struct cx8802_dev *dev)
|
||||||
|
|
||||||
/* init frontend */
|
/* init frontend */
|
||||||
switch (dev->core->board) {
|
switch (dev->core->board) {
|
||||||
#if CONFIG_DVB_CX22702
|
#ifdef CONFIG_DVB_CX22702
|
||||||
case CX88_BOARD_HAUPPAUGE_DVB_T1:
|
case CX88_BOARD_HAUPPAUGE_DVB_T1:
|
||||||
dev->dvb.frontend = cx22702_attach(&hauppauge_novat_config,
|
dev->dvb.frontend = cx22702_attach(&hauppauge_novat_config,
|
||||||
&dev->core->i2c_adap);
|
&dev->core->i2c_adap);
|
||||||
|
@ -272,7 +272,7 @@ static int dvb_register(struct cx8802_dev *dev)
|
||||||
&dev->core->i2c_adap);
|
&dev->core->i2c_adap);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_DVB_MT352
|
#ifdef CONFIG_DVB_MT352
|
||||||
case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1:
|
case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1:
|
||||||
dev->core->pll_addr = 0x61;
|
dev->core->pll_addr = 0x61;
|
||||||
dev->core->pll_desc = &dvb_pll_lg_z201;
|
dev->core->pll_desc = &dvb_pll_lg_z201;
|
||||||
|
@ -294,13 +294,13 @@ static int dvb_register(struct cx8802_dev *dev)
|
||||||
&dev->core->i2c_adap);
|
&dev->core->i2c_adap);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_DVB_OR51132
|
#ifdef CONFIG_DVB_OR51132
|
||||||
case CX88_BOARD_PCHDTV_HD3000:
|
case CX88_BOARD_PCHDTV_HD3000:
|
||||||
dev->dvb.frontend = or51132_attach(&pchdtv_hd3000,
|
dev->dvb.frontend = or51132_attach(&pchdtv_hd3000,
|
||||||
&dev->core->i2c_adap);
|
&dev->core->i2c_adap);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_DVB_LGDT3302
|
#ifdef CONFIG_DVB_LGDT3302
|
||||||
case CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q:
|
case CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q:
|
||||||
dev->ts_gen_cntrl = 0x08;
|
dev->ts_gen_cntrl = 0x08;
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,11 +36,11 @@
|
||||||
#include "saa7134-reg.h"
|
#include "saa7134-reg.h"
|
||||||
#include "saa7134.h"
|
#include "saa7134.h"
|
||||||
|
|
||||||
#if CONFIG_DVB_MT352
|
#ifdef CONFIG_DVB_MT352
|
||||||
# include "mt352.h"
|
# include "mt352.h"
|
||||||
# include "mt352_priv.h" /* FIXME */
|
# include "mt352_priv.h" /* FIXME */
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_DVB_TDA1004X
|
#ifdef CONFIG_DVB_TDA1004X
|
||||||
# include "tda1004x.h"
|
# include "tda1004x.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ MODULE_PARM_DESC(antenna_pwr,"enable antenna power (Pinnacle 300i)");
|
||||||
|
|
||||||
/* ------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------ */
|
||||||
|
|
||||||
#if CONFIG_DVB_MT352
|
#ifdef CONFIG_DVB_MT352
|
||||||
static int pinnacle_antenna_pwr(struct saa7134_dev *dev, int on)
|
static int pinnacle_antenna_pwr(struct saa7134_dev *dev, int on)
|
||||||
{
|
{
|
||||||
u32 ok;
|
u32 ok;
|
||||||
|
@ -153,7 +153,7 @@ static struct mt352_config pinnacle_300i = {
|
||||||
|
|
||||||
/* ------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------ */
|
||||||
|
|
||||||
#if CONFIG_DVB_TDA1004X
|
#ifdef CONFIG_DVB_TDA1004X
|
||||||
static int philips_tu1216_pll_init(struct dvb_frontend *fe)
|
static int philips_tu1216_pll_init(struct dvb_frontend *fe)
|
||||||
{
|
{
|
||||||
struct saa7134_dev *dev = fe->dvb->priv;
|
struct saa7134_dev *dev = fe->dvb->priv;
|
||||||
|
@ -385,7 +385,7 @@ static int philips_fmd1216_pll_set(struct dvb_frontend *fe, struct dvb_frontend_
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_DVB_TDA1004X
|
||||||
static struct tda1004x_config medion_cardbus = {
|
static struct tda1004x_config medion_cardbus = {
|
||||||
.demod_address = 0x08,
|
.demod_address = 0x08,
|
||||||
.invert = 1,
|
.invert = 1,
|
||||||
|
@ -398,6 +398,7 @@ static struct tda1004x_config medion_cardbus = {
|
||||||
.pll_sleep = philips_fmd1216_analog,
|
.pll_sleep = philips_fmd1216_analog,
|
||||||
.request_firmware = NULL,
|
.request_firmware = NULL,
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------ */
|
||||||
|
|
||||||
|
@ -547,14 +548,14 @@ static int dvb_init(struct saa7134_dev *dev)
|
||||||
dev);
|
dev);
|
||||||
|
|
||||||
switch (dev->board) {
|
switch (dev->board) {
|
||||||
#if CONFIG_DVB_MT352
|
#ifdef CONFIG_DVB_MT352
|
||||||
case SAA7134_BOARD_PINNACLE_300I_DVBT_PAL:
|
case SAA7134_BOARD_PINNACLE_300I_DVBT_PAL:
|
||||||
printk("%s: pinnacle 300i dvb setup\n",dev->name);
|
printk("%s: pinnacle 300i dvb setup\n",dev->name);
|
||||||
dev->dvb.frontend = mt352_attach(&pinnacle_300i,
|
dev->dvb.frontend = mt352_attach(&pinnacle_300i,
|
||||||
&dev->i2c_adap);
|
&dev->i2c_adap);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_DVB_TDA1004X
|
#ifdef CONFIG_DVB_TDA1004X
|
||||||
case SAA7134_BOARD_MD7134:
|
case SAA7134_BOARD_MD7134:
|
||||||
dev->dvb.frontend = tda10046_attach(&medion_cardbus,
|
dev->dvb.frontend = tda10046_attach(&medion_cardbus,
|
||||||
&dev->i2c_adap);
|
&dev->i2c_adap);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче