OSDN Git Service

thermal: intel: intel_pch: Make pch_wpt_add_acpi_psv_trip() return int
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Jan 2023 18:58:32 +0000 (19:58 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 2 Feb 2023 14:40:39 +0000 (15:40 +0100)
commit2cee73568e8d2f9d63793cf84e9aa65c9dfd85e2
tree3e23e8ae8ee71e69e5f466e4df7df7bd5d52800a
parent1bcebcab887ba4c4d790d7ccb055303c5dc7dbbb
thermal: intel: intel_pch: Make pch_wpt_add_acpi_psv_trip() return int

Modify pch_wpt_add_acpi_psv_trip() to return an int value instead of
using a return pointer for that.

While at it, drop an excessive empty code line.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Tested-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/intel/intel_pch_thermal.c