media: zoran: constify codec_name
authorCorentin Labbe <clabbe@baylibre.com>
Fri, 25 Sep 2020 18:30:44 +0000 (20:30 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 1 Oct 2020 07:58:10 +0000 (09:58 +0200)
The codec_name could be const.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/zoran/zoran_card.c

index 79783cbb919a898e872b133d4ab7cec7d383e61c..49a1d9e084a86c0fe59b4d7ec9e08087b6bee3ae 100644 (file)
@@ -254,9 +254,9 @@ static void avs6eyes_init(struct zoran *zr)
        GPIO(zr, 7, mux & 4);   /* MUX S2 */
 }
 
-static char *codecid_to_modulename(u16 codecid)
+static const char *codecid_to_modulename(u16 codecid)
 {
-       char *name = NULL;
+       const char *name = NULL;
 
        switch (codecid) {
        case CODEC_TYPE_ZR36060:
@@ -1102,7 +1102,7 @@ static int zoran_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        struct videocodec_master *master_vfe = NULL;
        struct videocodec_master *master_codec = NULL;
        int card_num;
-       char *codec_name, *vfe_name;
+       const char *codec_name, *vfe_name;
        unsigned int nr;
 
        nr = zoran_num++;