media: tpg: change char argument to const char
authorKaaira Gupta <kgupta@es.iitr.ac.in>
Sun, 5 Jul 2020 13:53:04 +0000 (15:53 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 11:38:30 +0000 (13:38 +0200)
commit9dc75e79c0dec0eb9363793efbd5f16d134169dc
tree4c1d442f4983eb7ded4566d20919fa00a846c38b
parent9c487b0b0ea7ff22127fe99a7f67657d8730ff94
media: tpg: change char argument to const char

Change the argument of type char * to const char * for function
tpg_gen_text().

This function should take in a const char * as opposed to char * as it
does not make changes to the text. This issue was found while passing
the order of colors of tpg generated test image (which is a const char
*) to this function.

Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in>
Reviewed-by: Helen Koike <helen.koike@collabora.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c
include/media/tpg/v4l2-tpg.h