edid-decode: simplify block detection code

Add the block_name() function and use that to simplify the
parse_extension().

Signed-off-by: Hans Verkuil <[email protected]>
3 files changed