]> git.baikalelectronics.ru Git - kernel.git/commit
Input: goodix - push error logging up into i2c_read and i2c_write helpers
authorHans de Goede <hdegoede@redhat.com>
Tue, 21 Sep 2021 04:08:35 +0000 (21:08 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 21 Sep 2021 05:00:26 +0000 (22:00 -0700)
commite31ad7e52332e99b86bc0ed94bb17778919b9150
treece4069f227335ceced54154a760fcc0259fb8c4a
parentf42272c53bd0d072983222f97b88e68a569fd231
Input: goodix - push error logging up into i2c_read and i2c_write helpers

Make the goodix_i2c_read() and goodix_i2c_write*() helpers log errors
themselves. This allows removing all the error logging from their callers.

This already results in a nice cleanup with the current code and it also
helps to make the upcoming support for controllers without flash cleaner.

Reviewed-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210920150643.155872-5-hdegoede@redhat.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/goodix.c