OSDN Git Service

thermal: intel: intel_pch: Eliminate device operations object
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Jan 2023 19:02:19 +0000 (20:02 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 2 Feb 2023 14:40:39 +0000 (15:40 +0100)
commit86cb1004b6f71b2f79f5fb08502a5bd10c852bf5
treef5ae7916f524461db0de0077e9bf4df56bac4ca0
parent1aa4f925d80c44bd70442a8e94718fc921b8a55f
thermal: intel: intel_pch: Eliminate device operations object

The same device operations object is pointed to by all of the board
configurations in the driver, so effectively the same operations
callbacks are used by all of them which only adds overhead (that can
be significant due to retpolines) for no real purpose.

For this reason, drop the device operations object and replace the
respective callback invocations by direct calls to the specific
functions that were previously pointed to by callback pointers.

No intentional change in behavior.

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