diff options
author | Jani Nikula <[email protected]> | 2016-01-08 13:21:51 +0200 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2016-01-08 15:30:28 +0100 |
commit | d9278b4c2c31603474eec19d9ea1dea6b3a81087 (patch) | |
tree | fc35560612ebf3e3ed76b1f2c212034f88313b2f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 14de6c44d149c68df1800ded42bbab51485ef67a (diff) |
drm/edid: index CEA/HDMI mode tables using the VIC
Add a dummy entry to CEA/HDMI mode tables so they can be indexed
directly using the VIC, avoiding a +1/-1 dance here and there. This adds
clarity to the error checking for various functions that return the VIC
on success and zero on failure; we can now explicitly check for 0
instead of just subtracting one from an unsigned type.
Also add drm_valid_cea_vic() and drm_valid_hdmi_vic() helpers for
checking valid VICs.
v2: add drm_valid_cea_vic and drm_valid_hdmi_vic helpers (Ville)
use { } instead of { 0 } for initializing the dummy modes
Cc: Ville Syrjälä <[email protected]>
Cc: Alex Deucher <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Reviewed-by: Ville Syrjälä <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions