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: 93ce5e0231d7 ("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
..
2020-11-25 17:40:23 +01:00
2022-08-25 11:46:55 +02:00
2021-05-05 14:39:24 +02:00
2022-07-21 13:47:12 +02:00
2022-02-02 15:12:22 +01:00
2021-12-02 15:36:18 +01:00
2022-02-25 09:36:06 +01:00