]> git.baikalelectronics.ru Git - kernel.git/commit
drm: atmel-hlcdc: avoid initializing cfg with zero
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 25 Apr 2019 12:36:16 +0000 (12:36 +0000)
committerSam Ravnborg <sam@ravnborg.org>
Tue, 4 Jun 2019 21:33:02 +0000 (23:33 +0200)
commitcab93d4ff0845db081621bbacdf18a3dbee64d4d
tree9e17b8faf0d67ded472770200e439c4c83c17bf3
parent45a72b2b7bb506568039b30cfd24a17d43d3564a
drm: atmel-hlcdc: avoid initializing cfg with zero

Remove cfg initialization with zero and read state with
drm_crtc_state_to_atmel_hlcdc_crtc_state() so that cfg to be initialized
with state's output_mode.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1556195748-11106-3-git-send-email-claudiu.beznea@microchip.com
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c