MLK-19199 drm/imx: lcdif: replace FB width usage for cropping
authorFancy Fang <chen.fang@nxp.com>
Fri, 10 Aug 2018 04:22:18 +0000 (12:22 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit0de62c577249614cad040fb15d7fb3865ccb3484
tree1d0720bc6a60f069e26a2900c6ed6fac24a65f97
parent67e31f9bef9a86c33ae8df1cd29ef5c6f368b197
MLK-19199 drm/imx: lcdif: replace FB width usage for cropping

According to the comments of 'struct drm_framebuffer', its
'width' field refers to the logical width of the visible
area of the framebuffer. This may be unequal to the total
pixels number of a line. So use the 'pitches' field to
replace 'width' for the horizontal cropping feature.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 9a2bbbf971ed79b32ae1c7da2d62b8a72f3ccffd)
(cherry picked from commit 0649fa3e27916edf43dcb9f1edc965e2cf1175e1)
drivers/gpu/drm/imx/lcdif/lcdif-plane.c