aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/amd/pmc/pmc.c
diff options
context:
space:
mode:
authorMario Limonciello <[email protected]>2024-12-06 16:12:02 +0000
committerBorislav Petkov (AMD) <[email protected]>2025-01-08 09:59:01 +0000
commit7dd57db495d49c004fffc77265ffbaccf340aa20 (patch)
tree87475dd7078ba5002c04236eb85db7ef357eddb8 /drivers/platform/x86/amd/pmc/pmc.c
parentx86/amd_nb: Simplify function 3 search (diff)
downloadkernel-7dd57db495d49c004fffc77265ffbaccf340aa20.tar.gz
kernel-7dd57db495d49c004fffc77265ffbaccf340aa20.zip
x86/amd_nb, hwmon: (k10temp): Simplify amd_pci_dev_to_node_id()
amd_pci_dev_to_node_id() tries to find the AMD node ID of a device by searching and counting devices. The AMD node ID of an AMD node device is simply its slot number minus the AMD node 0 slot number. Simplify this function and move it to k10temp.c. [ Yazen: Update commit message and simplify function. ] Signed-off-by: Mario Limonciello <[email protected]> Co-developed-by: Yazen Ghannam <[email protected]> Signed-off-by: Yazen Ghannam <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Acked-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/platform/x86/amd/pmc/pmc.c')
0 files changed, 0 insertions, 0 deletions