mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 00:21:59 +00:00
90184f90c9
Considering that amd_sfh exists only on AMD platforms, set the AMD SFH
driver to depend on x86 to avoid build warnings or errors on other
architectures, as shown below.
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c: In function 'amd_mp2_pci_probe':
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c:413:21: error: 'boot_cpu_data'
undeclared (first use in this function); did you mean 'boot_cpu_hwid'?
413 | if (boot_cpu_data.x86 >= 0x1A)
| ^~~~~~~~~~~~~
| boot_cpu_hwid
Fixes: 6296562f30
("HID: amd_sfh: Extend MP2 register access to SFH")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/all/20240228145648.41c493ec@canb.auug.org.au/
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
20 lines
586 B
Plaintext
20 lines
586 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
menu "AMD SFH HID Support"
|
|
depends on X86_64 || COMPILE_TEST
|
|
depends on PCI
|
|
|
|
config AMD_SFH_HID
|
|
tristate "AMD Sensor Fusion Hub"
|
|
depends on HID
|
|
depends on X86
|
|
help
|
|
If you say yes to this option, support will be included for the
|
|
AMD Sensor Fusion Hub.
|
|
This driver will enable sensors functionality on AMD platforms
|
|
starting from 17h family of RYZEN parts.
|
|
|
|
This driver can also be built as a module. If so, the module will
|
|
be called amd-sfh.
|
|
Say Y or M here if you want to support AMD SFH. If unsure, say N.
|
|
endmenu
|