aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLyude Paul <[email protected]>2021-05-14 14:14:56 -0400
committerLyude Paul <[email protected]>2021-06-09 13:35:18 -0400
commit3faea9939a3d1eb5a40f3f6100c24792865b6445 (patch)
treecdab0004241653f7b1ce19e374770d431b1eba2e /tools/perf/scripts/python
parent4154fa0e2688118ba3dbc67aa834435463f9ea68 (diff)
drm/i915/dpcd_bl: Handle drm_dpcd_read/write() return values correctly
This is kind of an annoying aspect of DRM's DP helpers: drm_dp_dpcd_readb/writeb() return the size of bytes read/written on success, thus we want to check against that instead of checking if the return value is less than 0. I'll probably be fixing this in the near future once I start doing DP work again, also because I'd rather not mix a tree-wide refactor like that in with a patch series intended to be around introducing DP backlight helpers. So, for now let's just handle the return values from each function correctly. Signed-off-by: Lyude Paul <[email protected]> Reviewed-by: Rodrigo Vivi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions