aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorBasavaraj Natikar <[email protected]>2022-09-27 10:27:26 +0000
committerJiri Kosina <[email protected]>2022-09-30 08:31:18 +0000
commit68266bdcceec10ea364e62c63732cd6fe5a256a8 (patch)
tree8a99fcef42aa2124869c048d26d140c0ad6f7774 /drivers/fpga/fpga-mgr.c
parentHID: amd_sfh: Change dev_err to dev_dbg for additional debug info (diff)
downloadkernel-68266bdcceec10ea364e62c63732cd6fe5a256a8.tar.gz
kernel-68266bdcceec10ea364e62c63732cd6fe5a256a8.zip
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 <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions