Skip to content

Commit 87ed4e8

Browse files
laeyraudChun-Kuang Hu
authored andcommitted
drm/mediatek: mtk_hdmi_ddc: Fix non-static global variable
The struct 'mtk_hdmi_ddc_driver' is not used outside of the mtk_hdmi_ddc.c file, so make it static to silence sparse warning: ``` drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c:331:24: sparse: warning: symbol 'mtk_hdmi_ddc_driver' was not declared. Should it be static? ``` Fixes: c241118 ("drm/mediatek: mtk_hdmi_ddc: Switch to register as module_platform_driver") Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com> Reviewed-by: CK Hu <ck.hu@mediatek.com> Link: https://patchwork.kernel.org/project/dri-devel/patch/20260429-mediatek-drm-fix-sparse-warnings-v1-4-d95c4d118b83@collabora.com/ Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
1 parent 571f00a commit 87ed4e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ static const struct of_device_id mtk_hdmi_ddc_match[] = {
328328
};
329329
MODULE_DEVICE_TABLE(of, mtk_hdmi_ddc_match);
330330

331-
struct platform_driver mtk_hdmi_ddc_driver = {
331+
static struct platform_driver mtk_hdmi_ddc_driver = {
332332
.probe = mtk_hdmi_ddc_probe,
333333
.remove = mtk_hdmi_ddc_remove,
334334
.driver = {

0 commit comments

Comments
 (0)