linux/drivers/hid/amd-sfh-hid
Mario Limonciello e51d8d3ea3 HID: amd_sfh: Don't show client init failed as error when discovery fails
When sensor discovery fails, this means that the system doesn't have
any sensors connected and a user should only be notified at most one time.
A message is already displayed at WARN level of "failed to discover,
sensors not enabled".  It's pointless to show that the client init failed
at ERR level for the same condition.

Check the return code and don't display this message in those conditions.

Fixes: b5d7f43e97 ("HID: amd_sfh: Add support for sensor discovery")
Reported-by: David Chang <David.Chang@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2022-05-27 09:07:27 +02:00
..
hid_descriptor HID: amd_sfh: change global variables to static 2022-04-21 10:18:54 +02:00
amd_sfh_client.c HID: amd_sfh: Add sensor name by index for debug info 2022-05-11 14:16:26 +02:00
amd_sfh_hid.c HID: amd_sfh: Add physical location to HID device 2022-05-11 14:16:26 +02:00
amd_sfh_hid.h HID: amd_sfh: Move bus declaration outside of amd-sfh 2022-05-11 14:16:26 +02:00
amd_sfh_pcie.c HID: amd_sfh: Don't show client init failed as error when discovery fails 2022-05-27 09:07:27 +02:00
amd_sfh_pcie.h HID: amd_sfh: Add sensor name by index for debug info 2022-05-11 14:16:26 +02:00
Kconfig
Makefile