HID: hid-goodix: Return 0 when receiving an empty HID feature package
authorCharles Wang <charles.goodix@gmail.com>
Thu, 31 Oct 2024 12:31:12 +0000 (20:31 +0800)
committerJiri Kosina <jkosina@suse.com>
Wed, 6 Nov 2024 14:08:31 +0000 (15:08 +0100)
commitbe8f7f2281a26abbda26ce37c5ee4674022a7a2f
tree477b708a3cf8ee9efcfed22f209fe08d3f41b677
parentc9a50b90905a1dc79ca72d4a262da30d3572ca9e
HID: hid-goodix: Return 0 when receiving an empty HID feature package

Align with the i2c-hid driver by returning 0 instead of -EINVAL when
an empty response is received, ensuring that userspace programs utilizing
the hidraw node receive consistent return values.

Signed-off-by: Charles Wang <charles.goodix@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-goodix-spi.c