summaryrefslogtreecommitdiffstats
path: root/include/media/tpg
diff options
context:
space:
mode:
authorKaaira Gupta <kgupta@es.iitr.ac.in>2020-07-05 15:53:04 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-07-19 13:38:30 +0200
commit9dc75e79c0dec0eb9363793efbd5f16d134169dc (patch)
tree4c1d442f4983eb7ded4566d20919fa00a846c38b /include/media/tpg
parent9c487b0b0ea7ff22127fe99a7f67657d8730ff94 (diff)
downloadlinux-stable-9dc75e79c0dec0eb9363793efbd5f16d134169dc.tar.gz
linux-stable-9dc75e79c0dec0eb9363793efbd5f16d134169dc.tar.bz2
linux-stable-9dc75e79c0dec0eb9363793efbd5f16d134169dc.zip
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>
Diffstat (limited to 'include/media/tpg')
-rw-r--r--include/media/tpg/v4l2-tpg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/tpg/v4l2-tpg.h b/include/media/tpg/v4l2-tpg.h
index eb191e85d363..9749ed409856 100644
--- a/include/media/tpg/v4l2-tpg.h
+++ b/include/media/tpg/v4l2-tpg.h
@@ -241,7 +241,7 @@ void tpg_log_status(struct tpg_data *tpg);
void tpg_set_font(const u8 *f);
void tpg_gen_text(const struct tpg_data *tpg,
- u8 *basep[TPG_MAX_PLANES][2], int y, int x, char *text);
+ u8 *basep[TPG_MAX_PLANES][2], int y, int x, const char *text);
void tpg_calc_text_basep(struct tpg_data *tpg,
u8 *basep[TPG_MAX_PLANES][2], unsigned p, u8 *vbuf);
unsigned tpg_g_interleaved_plane(const struct tpg_data *tpg, unsigned buf_line);