Re: [PATCH v2 09/16] x86/amd_nb, hwmon: (k10temp): Simplify amd_pci_dev_to_node_id()
From: Guenter Roeck
Date: Fri Dec 06 2024 - 11:38:28 EST
On 12/6/24 08:12, Yazen Ghannam wrote:
From: Mario Limonciello <mario.limonciello@xxxxxxx>
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 <mario.limonciello@xxxxxxx>
Co-developed-by: Yazen Ghannam <yazen.ghannam@xxxxxxx>
Signed-off-by: Yazen Ghannam <yazen.ghannam@xxxxxxx>
I assume this patch will be applied together with the series.
With that in mind:
Acked-by: Guenter Roeck <linux@xxxxxxxxxxxx>
Thanks,
Guenter