linux/drivers/hid/amd-sfh-hid/sfh1_1
Basavaraj Natikar 8455cbb259 HID: amd_sfh: Handle "no sensors" enabled for SFH1.1
Based on num_hid_devices, each sensor device is initialized. If
"no sensors" is initialized, amd_sfh work initialization and scheduling
doesn’t make sense and returns EOPNOTSUPP to stop driver probe. Hence,
add a check for "no sensors" enabled to handle the special case.

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>
2023-04-13 15:55:22 +02:00
..
amd_sfh_desc.c HID: amd_sfh: Fix illuminance value 2023-04-13 15:55:22 +02:00
amd_sfh_init.c HID: amd_sfh: Handle "no sensors" enabled for SFH1.1 2023-04-13 15:55:22 +02:00
amd_sfh_init.h
amd_sfh_interface.c HID: amd_sfh: Increase sensor command timeout for SFH1.1 2023-04-13 15:55:22 +02:00
amd_sfh_interface.h HID: amd_sfh: Fix illuminance value 2023-04-13 15:55:22 +02:00