* [PATCH] thermal: mediatek: auxadc_thermal: removed call to platform_set_drvdata()
@ 2023-08-11 19:28 Andrei Coardos
2023-08-13 19:09 ` Alexandru Ardelean
2023-08-16 10:34 ` Daniel Lezcano
0 siblings, 2 replies; 3+ messages in thread
From: Andrei Coardos @ 2023-08-11 19:28 UTC (permalink / raw)
To: linux-mediatek, linux-arm-kernel, linux-kernel, linux-pm
Cc: rdunlap, void0red, daniel, bchihi, aouledameur,
angelogioacchino.delregno, matthias.bgg, rui.zhang, amitk,
daniel.lezcano, rafael, alex, Andrei Coardos
This function call was found to be unnecessary as there is no equivalent
platform_get_drvdata() call to access the private data of the driver. Also,
the private data is defined in this driver, so there is no risk of it being
accessed outside of this driver file.
Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>
---
drivers/thermal/mediatek/auxadc_thermal.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/thermal/mediatek/auxadc_thermal.c b/drivers/thermal/mediatek/auxadc_thermal.c
index f59d36de20a0..99a1c35c68e7 100644
--- a/drivers/thermal/mediatek/auxadc_thermal.c
+++ b/drivers/thermal/mediatek/auxadc_thermal.c
@@ -1283,8 +1283,6 @@ static int mtk_thermal_probe(struct platform_device *pdev)
mtk_thermal_init_bank(mt, i, apmixed_phys_base,
auxadc_phys_base, ctrl_id);
- platform_set_drvdata(pdev, mt);
-
tzdev = devm_thermal_of_zone_register(&pdev->dev, 0, mt,
&mtk_thermal_ops);
if (IS_ERR(tzdev))
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] thermal: mediatek: auxadc_thermal: removed call to platform_set_drvdata()
2023-08-11 19:28 [PATCH] thermal: mediatek: auxadc_thermal: removed call to platform_set_drvdata() Andrei Coardos
@ 2023-08-13 19:09 ` Alexandru Ardelean
2023-08-16 10:34 ` Daniel Lezcano
1 sibling, 0 replies; 3+ messages in thread
From: Alexandru Ardelean @ 2023-08-13 19:09 UTC (permalink / raw)
To: Andrei Coardos
Cc: linux-mediatek, linux-arm-kernel, linux-kernel, linux-pm, rdunlap,
void0red, daniel, bchihi, aouledameur, angelogioacchino.delregno,
matthias.bgg, rui.zhang, amitk, daniel.lezcano, rafael
On Fri, Aug 11, 2023 at 10:28 PM Andrei Coardos <aboutphysycs@gmail.com> wrote:
>
> This function call was found to be unnecessary as there is no equivalent
> platform_get_drvdata() call to access the private data of the driver. Also,
> the private data is defined in this driver, so there is no risk of it being
> accessed outside of this driver file.
>
Reviewed-by: Alexandru Ardelean <alex@shruggie.ro>
> Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>
> ---
> drivers/thermal/mediatek/auxadc_thermal.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/thermal/mediatek/auxadc_thermal.c b/drivers/thermal/mediatek/auxadc_thermal.c
> index f59d36de20a0..99a1c35c68e7 100644
> --- a/drivers/thermal/mediatek/auxadc_thermal.c
> +++ b/drivers/thermal/mediatek/auxadc_thermal.c
> @@ -1283,8 +1283,6 @@ static int mtk_thermal_probe(struct platform_device *pdev)
> mtk_thermal_init_bank(mt, i, apmixed_phys_base,
> auxadc_phys_base, ctrl_id);
>
> - platform_set_drvdata(pdev, mt);
> -
> tzdev = devm_thermal_of_zone_register(&pdev->dev, 0, mt,
> &mtk_thermal_ops);
> if (IS_ERR(tzdev))
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] thermal: mediatek: auxadc_thermal: removed call to platform_set_drvdata()
2023-08-11 19:28 [PATCH] thermal: mediatek: auxadc_thermal: removed call to platform_set_drvdata() Andrei Coardos
2023-08-13 19:09 ` Alexandru Ardelean
@ 2023-08-16 10:34 ` Daniel Lezcano
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Lezcano @ 2023-08-16 10:34 UTC (permalink / raw)
To: Andrei Coardos, linux-mediatek, linux-arm-kernel, linux-kernel,
linux-pm
Cc: rdunlap, void0red, daniel, bchihi, aouledameur,
angelogioacchino.delregno, matthias.bgg, rui.zhang, amitk, rafael,
alex
On 11/08/2023 21:28, Andrei Coardos wrote:
> This function call was found to be unnecessary as there is no equivalent
> platform_get_drvdata() call to access the private data of the driver. Also,
> the private data is defined in this driver, so there is no risk of it being
> accessed outside of this driver file.
>
> Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>
> ---
Applied, thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-16 10:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-11 19:28 [PATCH] thermal: mediatek: auxadc_thermal: removed call to platform_set_drvdata() Andrei Coardos
2023-08-13 19:09 ` Alexandru Ardelean
2023-08-16 10:34 ` Daniel Lezcano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).