]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86/amd/pmc: Use ARRAY_SIZE() to fill num_ips information
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Fri, 8 Nov 2024 07:08:18 +0000 (12:38 +0530)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 2 Dec 2024 17:31:46 +0000 (19:31 +0200)
commit0b4c20ff2bca843a51a75ac53832a9b2f0645bc5
tree70e3ac5a83c0f6460eb94a7e53b3ae3860c1c19e
parent3279f7a6b7d42374897d3b818630602f0ff56521
platform/x86/amd/pmc: Use ARRAY_SIZE() to fill num_ips information

Instead of manually specifying num_ips, use ARRAY_SIZE() to set this value
based on the actual number of elements in the array.

Reviewed-by: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Co-developed-by: Sanket Goswami <Sanket.Goswami@amd.com>
Signed-off-by: Sanket Goswami <Sanket.Goswami@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://lore.kernel.org/r/20241108070822.3912689-7-Shyam-sundar.S-k@amd.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/pmc/pmc.c