drm: atmel-hlcdc: Fix vertical scaling
authorJan Leupold <leupold@rsi-elektrotechnik.de>
Wed, 6 Jul 2016 11:22:35 +0000 (13:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2016 08:07:42 +0000 (10:07 +0200)
commitf4877097201684942a975b8c9d6a0c96583bdd4c
tree4f490d60e8fec8f4055cc4310b6e281423b3499e
parentb214985cfaeda53495f9f115cb946b42432f4d6d
drm: atmel-hlcdc: Fix vertical scaling

commit d31ed3f05763644840c654a384eaefa94c097ba2 upstream.

The code is applying the same scaling for the X and Y components,
thus making the scaling feature only functional when both components
have the same scaling factor.

Do the s/_w/_h/ replacement where appropriate to fix vertical scaling.

Signed-off-by: Jan Leupold <leupold@rsi-elektrotechnik.de>
Fixes: 1a396789f65a2 ("drm: add Atmel HLCDC Display Controller support")
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c