summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2020-03-13 19:20:47 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2020-03-18 18:52:36 +0300
commitbf5e4a863ae0785239ba61a8cbb4d81e35e4732f (patch)
tree2ef9dc07b54485408ad9e29bb1aab8fea79c183e
parent267ea759b231e26611f87c8d23d2f3e5ea5a6e71 (diff)
downloadlinux-bf5e4a863ae0785239ba61a8cbb4d81e35e4732f.tar.xz
drm/edid: Swap some operands in for_each_displayid_db()
A+B on the previous line, B+A on the next line. Brain hurts. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200313162054.16009-3-ville.syrjala@linux.intel.com Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--include/drm/drm_displayid.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_displayid.h b/include/drm/drm_displayid.h
index 9d3b745c3107..27bdd273fc4e 100644
--- a/include/drm/drm_displayid.h
+++ b/include/drm/drm_displayid.h
@@ -97,7 +97,7 @@ struct displayid_detailed_timing_block {
(idx) + sizeof(struct displayid_block) <= (length) && \
(idx) + sizeof(struct displayid_block) + (block)->num_bytes <= (length) && \
(block)->num_bytes > 0; \
- (idx) += (block)->num_bytes + sizeof(struct displayid_block), \
+ (idx) += sizeof(struct displayid_block) + (block)->num_bytes, \
(block) = (struct displayid_block *)&(displayid)[idx])
#endif