[PATCH 2/4] drm: Add drm_calc_{hscale, vscale}() utility functions

2013-02-21 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? These functions calculcate the scaling factor based on the source and destination regions. There are two version of the functions, the strict ones that will return an error if the min/max scaling factor is exceeded, and the relaxed versions that will adjust the src/dst region

[PATCH 2/4] drm: Add drm_calc_{hscale, vscale}() utility functions

2013-02-21 Thread ville . syrjala
From: Ville Syrjälä These functions calculcate the scaling factor based on the source and destination regions. There are two version of the functions, the strict ones that will return an error if the min/max scaling factor is exceeded, and the relaxed versions that will adjust the src/dst region