mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 17:43:59 +00:00
drm/panel: khadas-ts050: make ts050[v2]_panel_data static
make ts050_panel_data and ts050v2_panel_data static because they are only used in drivers/gpu/drm/panel/panel-khadas-ts050.c, and fix the following sparse warnings: drivers/gpu/drm/panel/panel-khadas-ts050.c:620:32: sparse: warning: symbol 'ts050_panel_data' was not declared. Should it be static? drivers/gpu/drm/panel/panel-khadas-ts050.c:625:32: sparse: warning: symbol 'ts050v2_panel_data' was not declared. Should it be static? No functional changes intended. Signed-off-by: Min-Hua Chen <minhuadotchen@gmail.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20240908133533.112894-1-minhuadotchen@gmail.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240908133533.112894-1-minhuadotchen@gmail.com
This commit is contained in:
parent
0d4b950e03
commit
d5acba46eb
@ -617,12 +617,12 @@ static const struct khadas_ts050_panel_cmd ts050_init_code[] = {
|
||||
{0xd4, {0x04}, 0x01}, /* RGBMIPICTRL: VSYNC front porch = 4 */
|
||||
};
|
||||
|
||||
struct khadas_ts050_panel_data ts050_panel_data = {
|
||||
static struct khadas_ts050_panel_data ts050_panel_data = {
|
||||
.init_code = (struct khadas_ts050_panel_cmd *)ts050_init_code,
|
||||
.len = ARRAY_SIZE(ts050_init_code)
|
||||
};
|
||||
|
||||
struct khadas_ts050_panel_data ts050v2_panel_data = {
|
||||
static struct khadas_ts050_panel_data ts050v2_panel_data = {
|
||||
.init_code = (struct khadas_ts050_panel_cmd *)ts050v2_init_code,
|
||||
.len = ARRAY_SIZE(ts050v2_init_code)
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user