[PATCH 1/3] drm/rect: Return scaling factor and error code separately