]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/mediatek: mtk_cec: Fix non-static global variable
authorLouis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Wed, 29 Apr 2026 09:59:01 +0000 (11:59 +0200)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 18 May 2026 14:19:18 +0000 (14:19 +0000)
commit571f00a5fb725984049bd532ee8193cc34ff2994
tree769b6a4e1c62f6b5c411c827a7cd9956f5af0428
parentdc245d9a7f1b06f86271d4e524d6e5634c5ce312
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: 1e914a89ab7e ("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>
drivers/gpu/drm/mediatek/mtk_cec.c