linux/drivers/hid/amd-sfh-hid
Basavaraj Natikar 68266bdcce HID: amd_sfh: Handle condition of "no sensors" for SFH1.1
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: 93ce5e0231 ("HID: amd_sfh: Implement SFH1.1 functionality")
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2022-09-30 10:31:18 +02:00
..
hid_descriptor HID: amd_sfh: Add descriptor operations in amd_mp2_ops 2022-07-21 13:43:58 +02:00
sfh1_1 HID: amd_sfh: Handle condition of "no sensors" for SFH1.1 2022-09-30 10:31:18 +02:00
amd_sfh_client.c HID: amd_sfh: Handle condition of "no sensors" 2022-07-23 20:10:46 +02:00
amd_sfh_common.h HID: amd_sfh: Implement SFH1.1 functionality 2022-07-21 13:44:04 +02:00
amd_sfh_hid.c HID: amd_sfh: Add NULL check for hid device 2022-07-21 13:43:58 +02:00
amd_sfh_hid.h HID: amd_sfh: Add descriptor operations in amd_mp2_ops 2022-07-21 13:43:58 +02:00
amd_sfh_pcie.c HID: AMD_SFH: Add a DMI quirk entry for Chromebooks 2022-08-25 11:42:54 +02:00
amd_sfh_pcie.h HID: amd_sfh: Move global functions to static 2022-07-21 13:43:59 +02:00
Kconfig
Makefile HID: amd_sfh: Implement SFH1.1 functionality 2022-07-21 13:44:04 +02:00