]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86/amd/hsmp: Make hsmp_pdev static instead of global
authorSuma Hegde <suma.hegde@amd.com>
Mon, 21 Oct 2024 11:14:28 +0000 (11:14 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 25 Oct 2024 14:29:38 +0000 (17:29 +0300)
commit1349dd7dc21c63c9bad0e91fd1bf5f1ada34b0e2
tree715d4e8cb7b27fc34f385404c0747141595cffa7
parentc1691730d9ffb8e813018235ad1b9754104cf67b
platform/x86/amd/hsmp: Make hsmp_pdev static instead of global

Instead of making hsmp_pdev global and exporting this symbol from hsmp.c,
make it static and create a wrapper function get_hsmp_pdev() to access
hsmp_pdev from plat.c and acpi.c.

Signed-off-by: Suma Hegde <suma.hegde@amd.com>
Reviewed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Link: https://lore.kernel.org/r/20241021111428.2676884-11-suma.hegde@amd.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/hsmp/acpi.c
drivers/platform/x86/amd/hsmp/hsmp.c
drivers/platform/x86/amd/hsmp/hsmp.h
drivers/platform/x86/amd/hsmp/plat.c