drm: add drm_edid_to_eld helper extracting SADs from EDID (v2)
authorRafał Miłecki <zajec5@gmail.com>
Fri, 19 Apr 2013 17:01:25 +0000 (19:01 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Apr 2013 22:03:58 +0000 (18:03 -0400)
commitfe214163cc6e6b33253b7ac14bc3dd616e76b513
tree32c17795c76da99c458c61f71127d4897f82deb3
parent205996c0776a229052c33688ee58a605a021740d
drm: add drm_edid_to_eld helper extracting SADs from EDID (v2)

Some devices (ATI/AMD cards) don't support passing ELD struct to the
hardware but just require filling specific registers and then the
hardware/firmware does the rest. In such cases we need to read the info
from SAD blocks and put them in the correct registers.

agd5f: note that the returned pointer needs to be kfreed as per
Christian's suggestion.

v2: fix warning

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/drm_edid.c
include/drm/drm_edid.h