drm/i915/bios: abstract finding the panel sequence block
authorJani Nikula <jani.nikula@intel.com>
Tue, 5 Jan 2016 13:50:51 +0000 (15:50 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 5 Jan 2016 14:37:50 +0000 (16:37 +0200)
commit5db72099e8ec26a480420fc8b9326902a1a4ef69
treeed138f83b2ea57cc65a61ea9f082a9336a635ee9
parent08c0888b28d75cf4ee9ca0bbe1a2c55ddef87423
drm/i915/bios: abstract finding the panel sequence block

Make the whole thing easier to read. While at it, make the parsing more
robust, and ensure we don't read past buffer being parsed.

v2: improve commit message (Daniel)

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1452001851-8967-1-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_bios.c