drm/exynos: fix checks for valid mixer window
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 27 May 2013 06:00:43 +0000 (15:00 +0900)
committerInki Dae <daeinki@gmail.com>
Fri, 28 Jun 2013 12:11:48 +0000 (21:11 +0900)
commit1586d80cbf25d5f82539fd243924763738803745
treecc90aa20cd4d04a1feca5c74457b55bfb0c78dce
parentd482e5fa299c2cfbb4700143dd766273730e2357
drm/exynos: fix checks for valid mixer window

Valid values for mixer window are from 0 to MIXER_WIN_NR-1 inclusive.
Arrays in structures (e.g. mixer_context.win_data) have size of
MIXER_WIN_NR so checks for wrong mixer window must be greater-equal.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Hyunhee Kim <hyunhee.kim@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_hdmi.c
drivers/gpu/drm/exynos/exynos_mixer.c