aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-12-04 15:29:00 +0300
committerRobert Foss <[email protected]>2023-12-04 14:05:31 +0100
commit914437992876838662c968cb416f832110fb1093 (patch)
tree2b809c25cdcde57f417e8b77cd5b2a47df217d53 /tools/perf/scripts/python/bin
parentf6d8a80f1d10ff01cff3ac26e242165a270bbbad (diff)
drm/bridge: nxp-ptn3460: fix i2c_master_send() error checking
The i2c_master_send/recv() functions return negative error codes or the number of bytes that were able to be sent/received. This code has two problems. 1) Instead of checking if all the bytes were sent or received, it checks that at least one byte was sent or received. 2) If there was a partial send/receive then we should return a negative error code but this code returns success. Fixes: a9fe713d7d45 ("drm/bridge: Add PTN3460 bridge driver") Cc: [email protected] Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Robert Foss <[email protected]> Signed-off-by: Robert Foss <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions