diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2020-09-25 20:30:44 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-10-01 09:58:10 +0200 |
commit | d61c7451fcb712d1c3c855493c51f62a58a167e8 (patch) | |
tree | f158a6a5ab5541c71298e0503bf6260a8be306ea /drivers/staging/media | |
parent | 4ea8b196a7d03742c71f35deac37283fa35cc005 (diff) |
media: zoran: constify codec_name
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>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r-- | drivers/staging/media/zoran/zoran_card.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran/zoran_card.c index 79783cbb919a..49a1d9e084a8 100644 --- a/drivers/staging/media/zoran/zoran_card.c +++ b/drivers/staging/media/zoran/zoran_card.c @@ -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++; |