diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-08-30 18:14:57 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-09-05 21:42:18 +0200 |
commit | cbcd51e822bf51dfc7715f474c24fbca0ed23fce (patch) | |
tree | e5dbae6f8b2abb9436e09ca8440d59d284a20004 /drivers/power | |
parent | d332db8fc1a2dfb4738281b1d6d4ed20115dd9d3 (diff) | |
download | linux-cbcd51e822bf51dfc7715f474c24fbca0ed23fce.tar.gz linux-cbcd51e822bf51dfc7715f474c24fbca0ed23fce.tar.bz2 linux-cbcd51e822bf51dfc7715f474c24fbca0ed23fce.zip |
thermal: Use thermal_tripless_zone_device_register()
All of the remaining callers of thermal_zone_device_register()
can use thermal_tripless_zone_device_register(), so make them
do so in order to allow the former to be dropped.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/power_supply_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c index 4aa466c945e2..0b69fb7bafd8 100644 --- a/drivers/power/supply/power_supply_core.c +++ b/drivers/power/supply/power_supply_core.c @@ -1309,8 +1309,8 @@ static int psy_register_thermal(struct power_supply *psy) struct thermal_zone_params tzp = { .no_hwmon = IS_ENABLED(CONFIG_POWER_SUPPLY_HWMON) }; - psy->tzd = thermal_zone_device_register(psy->desc->name, - 0, 0, psy, &psy_tzd_ops, &tzp, 0, 0); + psy->tzd = thermal_tripless_zone_device_register(psy->desc->name, + psy, &psy_tzd_ops, &tzp); if (IS_ERR(psy->tzd)) return PTR_ERR(psy->tzd); ret = thermal_zone_device_enable(psy->tzd); |