mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
68266bdcce
Based on num_hid_devices, each sensor device registers to HID. If
"no sensors" then amd_sfh work initialization and scheduling
doesn’t make sense and return ENODEV to stop driver probe.
Hence add a check for num_hid_devices to handle special
case in the situation of "no sensors" for SFH1.1.
Fixes:
|
||
---|---|---|
.. | ||
hid_descriptor | ||
sfh1_1 | ||
amd_sfh_client.c | ||
amd_sfh_common.h | ||
amd_sfh_hid.c | ||
amd_sfh_hid.h | ||
amd_sfh_pcie.c | ||
amd_sfh_pcie.h | ||
Kconfig | ||
Makefile |