[PATCH] power: supply: core: constify psy_tzd_ops

From: Thomas Weißschuh
Date: Wed Aug 28 2024 - 14:05:16 EST


This struct is never modified, so mark it const.

Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
drivers/power/supply/power_supply_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c
index 8f6025acd10a..ecd011cb455b 100644
--- a/drivers/power/supply/power_supply_core.c
+++ b/drivers/power/supply/power_supply_core.c
@@ -1296,7 +1296,7 @@ static int power_supply_read_temp(struct thermal_zone_device *tzd,
return ret;
}

-static struct thermal_zone_device_ops psy_tzd_ops = {
+static const struct thermal_zone_device_ops psy_tzd_ops = {
.get_temp = power_supply_read_temp,
};


---
base-commit: 86987d84b968b69a610fd00ab9006c13db193b4e
change-id: 20240828-power-supply-const-psy_tzd_ops-d2f4c96518f9

Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>