]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Refactor panel fitting on the LVDS. (v2)
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 18 Jul 2010 11:05:54 +0000 (12:05 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 2 Aug 2010 02:35:17 +0000 (19:35 -0700)
commit69b009414deefb4c7f2a1e26e068d69f97e77907
tree368f935fe959b8eabb8480ff3660334b798af025
parent180e0475902586bf8baf76531c5c61bd5d340ea1
drm/i915: Refactor panel fitting on the LVDS. (v2)

Move the common routines into separate functions to not only increase
readability, but also throwaway surplus code.

In doing so, we review the calculation of the aspect preserving scaling
and avoid the use of fixed-point until we need to calculate the accurate
scale factor.

v2: Improve comments as suggested by Jesse.

1 files changed, 105 insertions(+), 194 deletions(-)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_lvds.c