projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f14f368
)
drm/edid: Use block local to refer to the block
author
Chris Wilson
<chris@chris-wilson.co.uk>
Mon, 17 Oct 2016 08:35:13 +0000
(09:35 +0100)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Mon, 17 Oct 2016 12:28:06 +0000
(14:28 +0200)
Now that we have the name "block" free once more, we can use it to point
to the start of a block within the edid.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link:
http://patchwork.freedesktop.org/patch/msgid/20161017083514.21772-2-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_edid.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/drm_edid.c
b/drivers/gpu/drm/drm_edid.c
index 3b4ac28f509e6de5ab2ec07aef8a96271e131cc8..95de47ba1e77f9eacfa034f76cfa08e58019587e 100644
(file)
--- a/
drivers/gpu/drm/drm_edid.c
+++ b/
drivers/gpu/drm/drm_edid.c
@@
-1313,15
+1313,13
@@
struct edid *drm_do_get_edid(struct drm_connector *connector,
edid = new;
for (j = 1; j <= edid[0x7e]; j++) {
+ u8 *block = edid + (valid_extensions + 1) * EDID_LENGTH;
+
for (i = 0; i < 4; i++) {
- if (get_edid_block(data,
- edid + (valid_extensions + 1) * EDID_LENGTH,
- j, EDID_LENGTH))
+ if (get_edid_block(data, block, j, EDID_LENGTH))
goto out;
- if (drm_edid_block_valid(edid + (valid_extensions + 1)
- * EDID_LENGTH, j,
- print_bad_edid,
- NULL)) {
+ if (drm_edid_block_valid(block, j,
+ print_bad_edid, NULL)) {
valid_extensions++;
break;
}