aboutsummaryrefslogtreecommitdiff
path: root/drivers/platform/surface/aggregator/controller.c
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2022-05-12 13:18:48 -0500
committerJiri Kosina <jkosina@suse.cz>2022-05-27 09:07:27 +0200
commite51d8d3ea3d773334d2c047c8d1623dba66f592a (patch)
treebffc905c9b8173f9b867a0c65ee738d9ae8e13d7 /drivers/platform/surface/aggregator/controller.c
parentd6b675687a4ab4dba684716d97c8c6f81bf10905 (diff)
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: b5d7f43e97da ("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>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions