summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2024-12-06 16:12:02 +0000
committerBorislav Petkov (AMD) <bp@alien8.de>2025-01-08 10:59:01 +0100
commit7dd57db495d49c004fffc77265ffbaccf340aa20 (patch)
tree87475dd7078ba5002c04236eb85db7ef357eddb8 /scripts/generate_rust_analyzer.py
parent49b96fc0dddc7b3a01c6707fcaad06fc520402ac (diff)
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 <mario.limonciello@amd.com> Co-developed-by: Yazen Ghannam <yazen.ghannam@amd.com> Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Acked-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20241206161210.163701-10-yazen.ghannam@amd.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions