drm/i915/hwmon: Replace hwm_field_scale_and_write with hwm_power_max_write
authorAshutosh Dixit <ashutosh.dixit@intel.com>
Thu, 16 Feb 2023 16:49:43 +0000 (08:49 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 16 Feb 2023 21:53:51 +0000 (16:53 -0500)
commitf99926383bd62d2b707e4599b4e096e943f63d42
tree92c3f598ac6c41b431a401e10b0332c0cc82f6fb
parent02107ef11b438a2528a113d8a546d4dceb8bcce1
drm/i915/hwmon: Replace hwm_field_scale_and_write with hwm_power_max_write

hwm_field_scale_and_write has a single caller hwm_power_write and is
specific to hwm_power_write but makes it appear that it is a general
function which can have multiple callers. Replace the function with
hwm_power_max_write which is specific to hwm_power_write and use that in
future patches where the function needs to be extended.

Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230216164944.2366150-2-ashutosh.dixit@intel.com
drivers/gpu/drm/i915/i915_hwmon.c