aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJani Nikula2021-03-29 16:37:15 +0300
committerJani Nikula2021-03-31 15:41:28 +0300
commit43d16d847eba1469b5579b6515413b4caa07885c (patch)
treee9510811f455d6fdd21a7746321315d490e40d71 /include
parente488b1023a4a4eab15b905871cf8e81f00336ed7 (diff)
drm/edid: make a number of functions, parameters and variables const
If there's no need to change it, it should be const. There's more to be done, but start off with changes that make follow-up work easier. No functional changes. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/41722f92ef81cd6adf65f936fcc5301418e1f94b.1617024940.git.jani.nikula@intel.com
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_displayid.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drm/drm_displayid.h b/include/drm/drm_displayid.h
index 77941efb5426..f141c0eff083 100644
--- a/include/drm/drm_displayid.h
+++ b/include/drm/drm_displayid.h
@@ -93,11 +93,11 @@ struct displayid_detailed_timing_block {
};
#define for_each_displayid_db(displayid, block, idx, length) \
- for ((block) = (struct displayid_block *)&(displayid)[idx]; \
+ for ((block) = (const struct displayid_block *)&(displayid)[idx]; \
(idx) + sizeof(struct displayid_block) <= (length) && \
(idx) + sizeof(struct displayid_block) + (block)->num_bytes <= (length) && \
(block)->num_bytes > 0; \
(idx) += sizeof(struct displayid_block) + (block)->num_bytes, \
- (block) = (struct displayid_block *)&(displayid)[idx])
+ (block) = (const struct displayid_block *)&(displayid)[idx])
#endif