projects
/
GitHub
/
moto-9609
/
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:
2143287
)
drm/edid: Use ARRAY_SIZE in drm_add_modes_noedid
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Mon, 10 Aug 2015 09:55:37 +0000
(11:55 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Tue, 11 Aug 2015 10:04:16 +0000
(12:04 +0200)
Spotted while reading code for random reasons.
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
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 e6e05bb75a7715f71d894962ed435e36c9667dc8..05bb7311ac5d151a1893b3802e333f28c8707df4 100644
(file)
--- a/
drivers/gpu/drm/drm_edid.c
+++ b/
drivers/gpu/drm/drm_edid.c
@@
-3802,7
+3802,7
@@
int drm_add_modes_noedid(struct drm_connector *connector,
struct drm_display_mode *mode;
struct drm_device *dev = connector->dev;
- count =
sizeof(drm_dmt_modes) / sizeof(struct drm_display_mode
);
+ count =
ARRAY_SIZE(drm_dmt_modes
);
if (hdisplay < 0)
hdisplay = 0;
if (vdisplay < 0)