Skip to content

Commit

Permalink
media: zoran: constify codec_name
Browse files Browse the repository at this point in the history
The codec_name could be const.

Signed-off-by: Corentin Labbe <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
montjoie authored and mchehab committed Oct 1, 2020
1 parent 4ea8b19 commit d61c745
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/media/zoran/zoran_card.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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++;
Expand Down

0 comments on commit d61c745

Please sign in to comment.