Skip to content
Commit 81ed425f authored by Dave Stevenson's avatar Dave Stevenson Committed by Dom Cobley
Browse files

drm/panel/raspberrypi-touchscreen: Handle I2C errors.



rpi_touchscreen_i2c_read returns any errors from i2c_transfer,
or the 8 bit received value.
Check for error values before trying to process the data as
valid.

Signed-off-by: default avatarDave Stevenson <dave.stevenson@raspberrypi.com>
parent e93fe29e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment