HID: i2c-hid: Move i2c_hid_acpi_pdata error reporting to inside the function
authorHans de Goede <hdegoede@redhat.com>
Tue, 3 Apr 2018 13:16:33 +0000 (15:16 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 16 Apr 2018 12:22:42 +0000 (14:22 +0200)
commit67767a5f7c6d8b48e2f43475bd4d47bb58397d6d
tree39de66f325763bef472a384f5705fbaf620e8366
parente8403b493fd5180e351ca67eb66406d95dadcd0b
HID: i2c-hid: Move i2c_hid_acpi_pdata error reporting to inside the function

Log an error in all error paths of i2c_hid_acpi_pdata() instead of having
the caller log a generic error.

This is a preparation patch for allowing i2c_hid_acpi_pdata() to fail
silently under certain conditions.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid.c