Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/panel: samsung: make vint_table static const

This eliminates the following sparse warning:

drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c:217:15: warning: symbol
'vint_table' was not declared. Should it be static?

While at it, make the table const as it is never modified.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200916132301.2914017-1-yanaijie@huawei.com

authored by

Jason Yan and committed by
Linus Walleij
d7b1c018 523be44c

+1 -1
+1 -1
drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c
··· 214 214 0x00, 0x00 } 215 215 }; 216 216 217 - unsigned char vint_table[S6E3HA2_VINT_STATUS_MAX] = { 217 + static const unsigned char vint_table[S6E3HA2_VINT_STATUS_MAX] = { 218 218 0x18, 0x19, 0x1a, 0x1b, 0x1c, 219 219 0x1d, 0x1e, 0x1f, 0x20, 0x21 220 220 };