drm/armada: improve efficiency of armada_drm_plane_calc_addrs()
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 8 Dec 2017 12:16:22 +0000 (12:16 +0000)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 8 Dec 2017 12:16:22 +0000 (12:16 +0000)
commitd6a48965db3d5f9b524ebfdd8c1fe3a4175d8e35
tree2fabddafcb0e2193dbd1880aa270d877b2993404
parent9c898c495490b129bd4445630e3c6641e8389fc8
drm/armada: improve efficiency of armada_drm_plane_calc_addrs()

Lookup the drm_format_info structure once when computing all the
framebuffer plane addresses by using drm_format_info(), rather than
repetitive lookups via drm_format_plane_cpp().

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/armada/armada_crtc.c