mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
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>
This commit is contained in:
parent
cf8c39b00e
commit
9dad0127ad
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user