drm/rect: Add drm_rect_init()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Sep 2019 13:42:12 +0000 (16:42 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 1 Oct 2019 14:45:20 +0000 (17:45 +0300)
commite22b86e97317cff590e3b0775fc2c842c1bff098
tree49aedc712c1b9e4526dbd18624c58bdf033af170
parent763ba2eca0f1a0b04529b4d118592c4dd387d53a
drm/rect: Add drm_rect_init()

Add a helper to initialize a rectangle from x/y/w/h information.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190930134214.24702-2-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
include/drm/drm_rect.h