[media] constify stv6110x_devctl structure
The stv6110x_devctl structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
37ecc7b127
commit
242c503350
@@ -690,7 +690,7 @@ static int tuner_attach_stv6110(struct ddb_input *input, int type)
|
||||
struct stv090x_config *feconf = type ? &stv0900_aa : &stv0900;
|
||||
struct stv6110x_config *tunerconf = (input->nr & 1) ?
|
||||
&stv6110b : &stv6110a;
|
||||
struct stv6110x_devctl *ctl;
|
||||
const struct stv6110x_devctl *ctl;
|
||||
|
||||
ctl = dvb_attach(stv6110x_attach, input->fe, tunerconf, i2c);
|
||||
if (!ctl) {
|
||||
|
@@ -57,7 +57,7 @@ static int tuner_attach_stv6110(struct ngene_channel *chan)
|
||||
chan->dev->card_info->fe_config[chan->number];
|
||||
struct stv6110x_config *tunerconf = (struct stv6110x_config *)
|
||||
chan->dev->card_info->tuner_config[chan->number];
|
||||
struct stv6110x_devctl *ctl;
|
||||
const struct stv6110x_devctl *ctl;
|
||||
|
||||
/* tuner 1+2: i2c adapter #0, tuner 3+4: i2c adapter #1 */
|
||||
if (chan->number < 2)
|
||||
|
@@ -644,7 +644,7 @@ static void frontend_init(struct budget *budget)
|
||||
}
|
||||
|
||||
case 0x101c: { /* TT S2-1600 */
|
||||
struct stv6110x_devctl *ctl;
|
||||
const struct stv6110x_devctl *ctl;
|
||||
saa7146_setgpio(budget->dev, 2, SAA7146_GPIO_OUTLO);
|
||||
msleep(50);
|
||||
saa7146_setgpio(budget->dev, 2, SAA7146_GPIO_OUTHI);
|
||||
@@ -697,7 +697,7 @@ static void frontend_init(struct budget *budget)
|
||||
break;
|
||||
|
||||
case 0x1020: { /* Omicom S2 */
|
||||
struct stv6110x_devctl *ctl;
|
||||
const struct stv6110x_devctl *ctl;
|
||||
saa7146_setgpio(budget->dev, 2, SAA7146_GPIO_OUTLO);
|
||||
msleep(50);
|
||||
saa7146_setgpio(budget->dev, 2, SAA7146_GPIO_OUTHI);
|
||||
|
Reference in New Issue
Block a user