Skip to content

Commit 571f00a

Browse files
laeyraudChun-Kuang Hu
authored andcommitted
drm/mediatek: mtk_cec: Fix non-static global variable
The struct 'mtk_cec_driver' is not used outside of the mtk_cec.c file, so make it static to silence sparse warning: ``` drivers/gpu/drm/mediatek/mtk_cec.c:243:24: sparse: warning: symbol 'mtk_cec_driver' was not declared. Should it be static? ``` Fixes: 1e914a8 ("drm/mediatek: mtk_cec: 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-3-d95c4d118b83@collabora.com/ Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
1 parent dc245d9 commit 571f00a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/mediatek/mtk_cec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ static const struct of_device_id mtk_cec_of_ids[] = {
240240
};
241241
MODULE_DEVICE_TABLE(of, mtk_cec_of_ids);
242242

243-
struct platform_driver mtk_cec_driver = {
243+
static struct platform_driver mtk_cec_driver = {
244244
.probe = mtk_cec_probe,
245245
.remove = mtk_cec_remove,
246246
.driver = {

0 commit comments

Comments
 (0)