diff mbox series

[-next] drm/mediatek: dp: change mtk_dp_driver to static

Message ID 20220913134929.1970187-1-yangyingliang@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next] drm/mediatek: dp: change mtk_dp_driver to static | expand

Commit Message

Yang Yingliang Sept. 13, 2022, 1:49 p.m. UTC
mtk_dp_driver is only used in mtk_dp.c now, change it
to static.

Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 drivers/gpu/drm/mediatek/mtk_dp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dmitry Osipenko Sept. 15, 2022, 9:03 a.m. UTC | #1
On 9/13/22 16:49, Yang Yingliang wrote:
> mtk_dp_driver is only used in mtk_dp.c now, change it
> to static.
> 
> Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver")
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
>  drivers/gpu/drm/mediatek/mtk_dp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/mediatek/mtk_dp.c b/drivers/gpu/drm/mediatek/mtk_dp.c
> index dfa942ca62da..6a8c0f4c5c09 100644
> --- a/drivers/gpu/drm/mediatek/mtk_dp.c
> +++ b/drivers/gpu/drm/mediatek/mtk_dp.c
> @@ -2642,7 +2642,7 @@ static const struct of_device_id mtk_dp_of_match[] = {
>  };
>  MODULE_DEVICE_TABLE(of, mtk_dp_of_match);
>  
> -struct platform_driver mtk_dp_driver = {
> +static struct platform_driver mtk_dp_driver = {
>  	.probe = mtk_dp_probe,
>  	.remove = mtk_dp_remove,
>  	.driver = {

Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Chun-Kuang Hu Sept. 18, 2022, 3:56 a.m. UTC | #2
Hi, Dmity:

My tree has no mtk dp driver yet. Would you like to pick this patch?

Acked-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>

Dmitry Osipenko <dmitry.osipenko@collabora.com> 於 2022年9月15日 週四 下午5:04寫道:
>
> On 9/13/22 16:49, Yang Yingliang wrote:
> > mtk_dp_driver is only used in mtk_dp.c now, change it
> > to static.
> >
> > Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver")
> > Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> > ---
> >  drivers/gpu/drm/mediatek/mtk_dp.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/mediatek/mtk_dp.c b/drivers/gpu/drm/mediatek/mtk_dp.c
> > index dfa942ca62da..6a8c0f4c5c09 100644
> > --- a/drivers/gpu/drm/mediatek/mtk_dp.c
> > +++ b/drivers/gpu/drm/mediatek/mtk_dp.c
> > @@ -2642,7 +2642,7 @@ static const struct of_device_id mtk_dp_of_match[] = {
> >  };
> >  MODULE_DEVICE_TABLE(of, mtk_dp_of_match);
> >
> > -struct platform_driver mtk_dp_driver = {
> > +static struct platform_driver mtk_dp_driver = {
> >       .probe = mtk_dp_probe,
> >       .remove = mtk_dp_remove,
> >       .driver = {
>
> Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
>
> --
> Best regards,
> Dmitry
>
Dmitry Osipenko Sept. 19, 2022, 9:51 a.m. UTC | #3
Hello Chun-Kuang,

18.09.2022 06:56, Chun-Kuang Hu пишет:
> Hi, Dmitry:
> 
> My tree has no mtk dp driver yet. Would you like to pick this patch?
> 
> Acked-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
> 
> Dmitry Osipenko <dmitry.osipenko@collabora.com> 於 2022年9月15日 週四 下午5:04寫道:

Applied to drm-misc-next
diff mbox series

Patch

diff --git a/drivers/gpu/drm/mediatek/mtk_dp.c b/drivers/gpu/drm/mediatek/mtk_dp.c
index dfa942ca62da..6a8c0f4c5c09 100644
--- a/drivers/gpu/drm/mediatek/mtk_dp.c
+++ b/drivers/gpu/drm/mediatek/mtk_dp.c
@@ -2642,7 +2642,7 @@  static const struct of_device_id mtk_dp_of_match[] = {
 };
 MODULE_DEVICE_TABLE(of, mtk_dp_of_match);
 
-struct platform_driver mtk_dp_driver = {
+static struct platform_driver mtk_dp_driver = {
 	.probe = mtk_dp_probe,
 	.remove = mtk_dp_remove,
 	.driver = {