aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorGustavo Sousa <[email protected]>2023-08-14 10:13:29 -0300
committerMatt Roper <[email protected]>2023-08-17 12:25:14 -0700
commit0f5c2e5bd2fc8d2e09043b6bb3c81a889a483997 (patch)
treeaee0d51830164b2f56f0a5c5cfe31abb1880962c /tools/perf/scripts/python/bin
parent3a8ecd4c3ede7283619536917e61c1aa3b9db6b7 (diff)
drm/i915: Simplify intel_cx0_program_phy_lane() with loop
It is possible to generalize the "disable" value for the transmitters to be a bit mask based on the port width and the port reversal boolean, with a small exception for DP-alt mode with "x1" port width. Simplify the code by using such a mask and a for-loop instead of using switch-case statements. v2: - Use (i < 2) instead of (i / 2 == 0) for PHY lane mask selection. (Jani) BSpec: 64539 Cc: Jani Nikula <[email protected]> Signed-off-by: Gustavo Sousa <[email protected]> Reviewed-by: Mika Kahola <[email protected]> Signed-off-by: Matt Roper <[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