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>
Loading
Please sign in to comment