Skip to content

Commit 9dad012

Browse files
t-8chsre
authored andcommitted
power: supply: core: constify psy_tzd_ops
This struct is never modified, so mark it const. Signed-off-by: Thomas Weißschuh <[email protected]> Link: https://lore.kernel.org/r/20240828-power-supply-const-psy_tzd_ops-v1-1-dc27176fda5b@weissschuh.net Signed-off-by: Sebastian Reichel <[email protected]>
1 parent cf8c39b commit 9dad012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power/supply/power_supply_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ static int power_supply_read_temp(struct thermal_zone_device *tzd,
12951295
return ret;
12961296
}
12971297

1298-
static struct thermal_zone_device_ops psy_tzd_ops = {
1298+
static const struct thermal_zone_device_ops psy_tzd_ops = {
12991299
.get_temp = power_supply_read_temp,
13001300
};
13011301

0 commit comments

Comments
 (0)