From: Mauro Carvalho Chehab Date: Mon, 5 Jan 2009 04:23:50 +0000 (-0300) Subject: V4L/DVB (10179): tda8290: Fix two sparse warnings X-Git-Tag: v2.6.29-rc1~176^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4c27f1a4da4902c70b84a8bce66f8fe909fb829b;p=linux-2.6-omap-h63xx.git V4L/DVB (10179): tda8290: Fix two sparse warnings /home/v4l/master/v4l/tda8290.c:233:7: warning: symbol 'i' shadows an earlier one /home/v4l/master/v4l/tda8290.c:178:3: warning: symbol 'fm_mode' was not declared. Should it be static? Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/common/tuners/tda8290.c b/drivers/media/common/tuners/tda8290.c index 0ee79fd7c7a..0e7f77f93e0 100644 --- a/drivers/media/common/tuners/tda8290.c +++ b/drivers/media/common/tuners/tda8290.c @@ -150,7 +150,7 @@ static void set_audio(struct dvb_frontend *fe, } } -struct { +static struct { unsigned char seq[2]; } fm_mode[] = { { { 0x01, 0x81} }, /* Put device into expert mode */ @@ -207,7 +207,6 @@ static void tda8290_set_params(struct dvb_frontend *fe, msleep(1); if (params->mode == V4L2_TUNER_RADIO) { - int i; unsigned char deemphasis[] = { 0x13, 1 }; /* FIXME: allow using a different deemphasis */