[PATCH] drm/panel: rpi-touchscreen: propagate errors in rpi_touchscreen_i2c_read()

Eric Anholt eric at anholt.net
Tue Oct 31 00:02:13 UTC 2017


Dan Carpenter <dan.carpenter at oracle.com> writes:

> There is one caller which checks whether rpi_touchscreen_i2c_read()
> returns negative error codes.  Currently it can't because negative
> error codes are truncated to u8, but that's easy to fix if we change the
> type to int.

Reviewed and applied to -next.  Thanks!

(Not to -fixes because we're late in the cycle, we don't have an
upstream DT exposing the panel, and it seems unlikely that the error
value here would happen to collide with one of the 2 values of a valid
firmware revision)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20171030/b96d1e0c/attachment.sig>


More information about the dri-devel mailing list