994461cdb161bc123e7f49f27e333a23454bfd4a
[openwrt/staging/neocturne.git] /
1 From c864ff9de3b225b43bb8e08dedb223632323e059 Mon Sep 17 00:00:00 2001
2 From: Andrei Coardos <aboutphysycs@gmail.com>
3 Date: Fri, 11 Aug 2023 22:28:47 +0300
4 Subject: [PATCH 34/42] thermal/drivers/mediatek/auxadc_thermal: Removed call
5 to platform_set_drvdata()
6
7 This function call was found to be unnecessary as there is no equivalent
8 platform_get_drvdata() call to access the private data of the driver. Also,
9 the private data is defined in this driver, so there is no risk of it being
10 accessed outside of this driver file.
11
12 Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>
13 Reviewed-by: Alexandru Ardelean <alex@shruggie.ro>
14 Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
15 Link: https://lore.kernel.org/r/20230811192847.3838-1-aboutphysycs@gmail.com
16 ---
17 drivers/thermal/mediatek/auxadc_thermal.c | 2 --
18 1 file changed, 2 deletions(-)
19
20 --- a/drivers/thermal/mediatek/auxadc_thermal.c
21 +++ b/drivers/thermal/mediatek/auxadc_thermal.c
22 @@ -1283,8 +1283,6 @@ static int mtk_thermal_probe(struct plat
23 mtk_thermal_init_bank(mt, i, apmixed_phys_base,
24 auxadc_phys_base, ctrl_id);
25
26 - platform_set_drvdata(pdev, mt);
27 -
28 tzdev = devm_thermal_of_zone_register(&pdev->dev, 0, mt,
29 &mtk_thermal_ops);
30 if (IS_ERR(tzdev))