]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86/amd/pmf: Add BIOS_INPUTS_MAX macro to replace hardcoded array size
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Wed, 19 Nov 2025 08:58:11 +0000 (14:28 +0530)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 27 Nov 2025 11:58:27 +0000 (13:58 +0200)
commit2bd038de12e6e5168b64a0063ac8e6bd0a047133
treebba80c24c120da37e6b0db002c043c0c1cc99d44
parent1d1b8b0734af5149946e687415bf6be05ae55bd6
platform/x86/amd/pmf: Add BIOS_INPUTS_MAX macro to replace hardcoded array size

Define a new macro BIOS_INPUTS_MAX, to represent the maximum number of
BIOS input values. Replace hardcoded array sizes in relevant structures
with this macro to improve readability and maintainability.

Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Tested-by: Yijun Shen <Yijun.Shen@Dell.com>
Co-developed-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://patch.msgid.link/20251119085813.546813-1-Shyam-sundar.S-k@amd.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/pmf/pmf.h