drm: omapdrm: Use sizeof(*var) instead of sizeof(type) for structures
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 12 Dec 2016 09:57:24 +0000 (11:57 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 19 Dec 2016 09:25:05 +0000 (11:25 +0200)
commitd501b12999eb9cdfc488127fabaf794171dd9bbf
tree4b97a912c76f6ac6d2cf6c62fc82540d8be47f58
parent84e1d4578fe9de486b367cc22a405f4a299ab17c
drm: omapdrm: Use sizeof(*var) instead of sizeof(type) for structures

By linking the sizeof to a variable type the code will be less prone to
bugs due to future type changes of variables.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c
drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c
drivers/gpu/drm/omapdrm/omap_connector.c
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
drivers/gpu/drm/omapdrm/omap_encoder.c