Commit 29999ced authored by Dan Carpenter's avatar Dan Carpenter Committed by popcornmix
Browse files

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



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.

Fixes: 2f733d61 ("drm/panel: Add support for the Raspberry Pi 7" Touchscreen.")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20171020002845.kar2wg7gqxg7tzqi@mwanda


Reviewed-by: default avatarEric Anholt <eric@anholt.net>
(cherry picked from commit 85b4587f)
parent 6395c905
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment