Skip to content
Commit 5dcd3048 authored by Dave Stevenson's avatar Dave Stevenson Committed by Phil Elwell
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 7c41fe5e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment