Sync with NetBSD: remove duplicate mode entries when parsing edid records,be more robust against bogus edid data.
Make edid_parse() take a device name as extra argument so that the fewmessages it may print are tied to the particular device it concerns.
Import EDID handling code from NetBSD. Ok deraadt@, miod@, mglocker@.