[PATCH v2] drm/edid: index CEA/HDMI mode tables using the VIC

2016-01-08 Thread Daniel Vetter
On Fri, Jan 08, 2016 at 01:30:29PM +0200, Ville Syrjälä wrote: > On Fri, Jan 08, 2016 at 01:21:51PM +0200, Jani Nikula wrote: > > 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

[PATCH v2] drm/edid: index CEA/HDMI mode tables using the VIC

2016-01-08 Thread Ville Syrjälä
On Fri, Jan 08, 2016 at 01:21:51PM +0200, Jani Nikula wrote: > 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

[PATCH v2] drm/edid: index CEA/HDMI mode tables using the VIC

2016-01-08 Thread Jani Nikula
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 subtrac