]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/intel_fb: Factor out convert_plane_offset_to_xy()
authorImre Deak <imre.deak@intel.com>
Thu, 25 Mar 2021 21:47:56 +0000 (23:47 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 29 Mar 2021 19:54:50 +0000 (22:54 +0300)
commit4ba5325851daaafc075ab93622adec10033ab7fa
tree6e0ab48a52e23ced987fb6ae776655b58cf6c45f
parentcbdfd0f4af111b7085362dcb0792ceccf7a510a6
drm/i915/intel_fb: Factor out convert_plane_offset_to_xy()

Factor out to a new function the logic to convert the FB plane offset to
x/y and check the validity of x/y, with the goal to make
intel_fill_fb_info() more readable.

v2: Use &fb->base instead of a drm_fb alias. (Ville)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210325214808.2071517-14-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_fb.c