aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2024-08-28 20:04:29 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2024-08-29 00:11:31 +0200
commit9dad0127ad732f756d056ea152e0b084f321c765 (patch)
tree275512bff52e2d5d075d772b1e58b3d4b0fde85c
parentpower: reset: brcmstb: Do not go into infinite loop if reset fails (diff)
downloadwireguard-linux-9dad0127ad732f756d056ea152e0b084f321c765.tar.xz
wireguard-linux-9dad0127ad732f756d056ea152e0b084f321c765.zip
power: supply: core: constify psy_tzd_ops
This struct is never modified, so mark it const. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20240828-power-supply-const-psy_tzd_ops-v1-1-dc27176fda5b@weissschuh.net Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to '')
-rw-r--r--drivers/power/supply/power_supply_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c
index 2b845ac51157..3614d263ddad 100644
--- a/drivers/power/supply/power_supply_core.c
+++ b/drivers/power/supply/power_supply_core.c
@@ -1295,7 +1295,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,
};