linux/drivers/gpu/drm/armada
Maxime Ripard 05c452c115
drm: Remove users of drm_format_num_planes
drm_format_num_planes() is basically a lookup in the drm_format_info table
plus an access to the num_planes field of the appropriate entry.

Most drivers are using this function while having access to the entry
already, which means that we will perform an unnecessary lookup. Removing
the call to drm_format_num_planes is therefore more efficient.

Some drivers will not have access to that entry in the function, but in
this case the overhead is minimal (we just have to call drm_format_info()
to perform the lookup) and we can even avoid multiple, inefficient lookups
in some places that need multiple fields from the drm_format_info
structure.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/5ffcec9d14a50ed538e37d565f546802452ee672.1558002671.git-series.maxime.ripard@bootlin.com
2019-05-20 13:32:57 +02:00
..
armada_510.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
armada_crtc.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
armada_crtc.h drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
armada_debugfs.c drm/armada: Remove armada_drm_debugfs_cleanup() 2017-03-01 16:09:51 +01:00
armada_drm.h drm/armada: remove obsolete fb unreferencing kfifo and workqueue 2018-07-30 11:53:06 +01:00
armada_drv.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
armada_fb.c drm: Remove users of drm_format_num_planes 2019-05-20 13:32:57 +02:00
armada_fb.h drm/armada: move armada_drm_mode_config_funcs to armada_drv.c 2018-07-30 11:52:34 +01:00
armada_fbdev.c drm/armada: Use drm_fb_helper_fill_info 2019-03-27 09:56:14 +01:00
armada_gem.c Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
armada_gem.h drm/armada: Use .dumb_map_offset and .dumb_destroy defaults 2017-09-02 14:22:20 +02:00
armada_hw.h drm/armada: add rectangle helpers 2018-07-30 11:52:34 +01:00
armada_ioctlP.h
armada_overlay.c drm: extract drm_atomic_uapi.c 2018-09-09 14:19:18 +02:00
armada_plane.c drm/armada: remove unnecessary armada_plane structure 2018-07-30 11:53:06 +01:00
armada_plane.h drm/armada: remove unnecessary armada_plane structure 2018-07-30 11:53:06 +01:00
armada_trace.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
armada_trace.h drm/armada: expand overlay trace entry 2017-12-08 12:22:02 +00:00
Kconfig drm: add more MMU dependencies 2017-01-11 17:24:58 +01:00
Makefile drm/armada: move primary plane to separate file 2018-07-30 11:52:34 +01:00