[media] media: bt8xx: constify or51211_config structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 3 Jan 2016 12:19:52 +0000 (10:19 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 1 Feb 2016 09:58:26 +0000 (07:58 -0200)
The or51211_config 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>
drivers/media/pci/bt8xx/dvb-bt8xx.c

index d407244fd1bce3339b3fdbc13ea3e4801114f19a..8aeb14cfb89cb6ad9a53417cd2f0159bba3de4e1 100644 (file)
@@ -458,7 +458,7 @@ static void or51211_sleep(struct dvb_frontend * fe)
        bttv_write_gpio(bt->bttv_nr, 0x0001, 0x0000);
 }
 
-static struct or51211_config or51211_config = {
+static const struct or51211_config or51211_config = {
        .demod_address = 0x15,
        .request_firmware = or51211_request_firmware,
        .setmode = or51211_setmode,