]> asedeno.scripts.mit.edu Git - linux.git/commit
drm: mali-dp: Separate static internal data into a read-only structure.
authorLiviu Dudau <Liviu.Dudau@arm.com>
Thu, 31 Aug 2017 14:48:43 +0000 (15:48 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Fri, 24 Nov 2017 15:42:59 +0000 (15:42 +0000)
commita6993b215a719ad5758c1bced5f8df95add070bf
tree8d4409645890d095e4d06e04fbdf902391a57ffa
parent0970d7a2f5b0dcdd520c7655210d677f6e9a878e
drm: mali-dp: Separate static internal data into a read-only structure.

The malidp_hw_device structure that the driver uses to handle the
differences between versions of the IP contains both non-changeable
data and fields that get updated at probe time. Previously we were
copying the read-only part into allocated memory, but that can be
completely avoided by splitting the structure into a read-only part
and keeping the runtime modifiable fields into the old structure.

Reviewed-by: Brian Starkey <brian.starkey@arm.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/malidp_crtc.c
drivers/gpu/drm/arm/malidp_drv.c
drivers/gpu/drm/arm/malidp_hw.c
drivers/gpu/drm/arm/malidp_hw.h
drivers/gpu/drm/arm/malidp_planes.c