]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Replace instances of drm_format_info by drm_get_format_info
authorMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 16 May 2019 10:31:51 +0000 (12:31 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 20 May 2019 11:35:40 +0000 (13:35 +0200)
commit5ecd71f00b5773786692cafd614faf279f9c850d
treed5b8d22ffe1133aa725c5703ad1fcf58769d32df
parentee46466e29498eeeba69cec05240b32eedf0ea89
drm: Replace instances of drm_format_info by drm_get_format_info

drm_get_format_info directly calls into drm_format_info, but takes directly
a struct drm_mode_fb_cmd2 pointer, instead of the fourcc directly. It's
shorter to not dereference it, and we can customise the behaviour at the
driver level if we want to, so let's switch to it where it makes sense.

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/5859d68664b8f0804a56e7386937f6db986b9e0f.1558002671.git-series.maxime.ripard@bootlin.com
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
drivers/gpu/drm/gma500/framebuffer.c
drivers/gpu/drm/omapdrm/omap_fb.c