diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2024-08-28 20:04:29 +0200 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2024-08-29 00:11:31 +0200 |
| commit | 9dad0127ad732f756d056ea152e0b084f321c765 (patch) | |
| tree | 275512bff52e2d5d075d772b1e58b3d4b0fde85c | |
| parent | cf8c39b00e982fa506b16f9d76657838c09150cb (diff) | |
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>
| -rw-r--r-- | drivers/power/supply/power_supply_core.c | 2 |
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, }; |
