drm/amdgpu/pm: Fix code alignment issue
Subsystems (3)
PATCH 1/1 drm/amdgpu/pm: Fix code alignment issue
Fix code alignment issue
Signed-off-by Ma Jun <[email protected]>
Reported-by Yang Wang <[email protected]>
--- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 4 ++-- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +2 -2
@@ -4381,8 +4381,8 @@ int amdgpu_pm_sysfs_init(struct amdgpu_device *adev)/* under multi-vf mode, the hwmon attributes are all not supported */ if (mode !=SRIOV_VF_MODE_MULTI_VF ) { adev->pm.int_hwmon_dev =hwmon_device_register_with_groups (adev->dev, -DRIVER_NAME , adev, - hwmon_groups); +DRIVER_NAME , adev, + hwmon_groups);if (IS_ERR (adev->pm.int_hwmon_dev)) { ret =PTR_ERR (adev->pm.int_hwmon_dev);dev_err (adev->dev,"Unable to register hwmon device: %d\n" , ret);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c +2 -2
@@ -2557,8 +2557,8 @@ static int smu_v13_0_0_set_power_profile_mode(struct smu_context *smu, (amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == IP_VERSION(13, 0, 10) && smu->adev->pm.fw_version >= 0x00504500)) { workload_type =smu_cmn_to_asic_specific_index (smu, -CMN2ASIC_MAPPING_WORKLOAD , -PP_SMC_POWER_PROFILE_POWERSAVING ); +CMN2ASIC_MAPPING_WORKLOAD , +PP_SMC_POWER_PROFILE_POWERSAVING );if (workload_type >=0 ) workload_mask |=1 << workload_type; }
Signature · 1 line
2.34.1
[AMD Official Use Only - General]
Reviewed-by Yang Wang <[email protected]>
Best Regards,
Kevin
-----Original Message-----
From: Ma, Jun <[email protected]>
Sent: Thursday, May 9, 2024 5:37 PM
To: [email protected]
Cc: Feng, Kenneth <[email protected]>; Deucher, Alexander <[email protected]>; Wang, Yang(Kevin) <[email protected]>; Koenig, Christian <[email protected]>; Ma, Jun <[email protected]>
Subject: [PATCH] drm/amdgpu/pm: Fix code alignment issue
Fix code alignment issue
Signed-off-by Ma Jun <[email protected]>
Reported-by Yang Wang <[email protected]>
--- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 4 ++-- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +2 -2
@@ -4381,8 +4381,8 @@ int amdgpu_pm_sysfs_init(struct amdgpu_device *adev)/* under multi-vf mode, the hwmon attributes are all not supported */ if (mode !=SRIOV_VF_MODE_MULTI_VF ) { adev->pm.int_hwmon_dev =hwmon_device_register_with_groups (adev->dev, -DRIVER_NAME , adev, - hwmon_groups); +DRIVER_NAME , adev, + hwmon_groups);if (IS_ERR (adev->pm.int_hwmon_dev)) { ret =PTR_ERR (adev->pm.int_hwmon_dev); dev_err(adev->dev, "Unable to register hwmon device: %d\n", ret); diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
index 1e09d5f2d82f..e8b01662e164 100644
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c +2 -2
@@ -2557,8 +2557,8 @@ static int smu_v13_0_0_set_power_profile_mode(struct smu_context *smu, (amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == IP_VERSION(13, 0, 10) && smu->adev->pm.fw_version >= 0x00504500)) { workload_type =smu_cmn_to_asic_specific_index (smu, -CMN2ASIC_MAPPING_WORKLOAD , -PP_SMC_POWER_PROFILE_POWERSAVING ); +CMN2ASIC_MAPPING_WORKLOAD , +PP_SMC_POWER_PROFILE_POWERSAVING );if (workload_type >=0 ) workload_mask |=1 << workload_type; }
--
2.34.1