drm/amd: Update `update_pcie_parameters` functions to use uint8_t arguments
authorMario Limonciello <mario.limonciello@amd.com>
Sat, 30 Sep 2023 03:12:18 +0000 (22:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Oct 2023 22:39:39 +0000 (18:39 -0400)
commit7752ccf85b929a22e658ec145283e8f31232f4bb
tree4aecc478e0afcf90e1bf0183b9ff0e22f9e88627
parentbc0b79ce2050aa523c38c96b6d26340a96bfbdca
drm/amd: Update `update_pcie_parameters` functions to use uint8_t arguments

The matching values for `pcie_gen_cap` and `pcie_width_cap` when
fetched from powerplay tables are 1 byte, so narrow the arguments
to match to ensure min() and max() comparisons without casts.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c