]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mgag200: Use simple encoder
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 28 Feb 2020 08:18:27 +0000 (09:18 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 2 Mar 2020 08:22:49 +0000 (09:22 +0100)
commit4116da2c04201100faef3bf0ec9b1df59f5b8342
tree081b9ee44654338dcf3cc2e8be98ddc17e5cff58
parenta3baeaa3e3458525caab68604633312ea7c34c40
drm/mgag200: Use simple encoder

The mgag200 driver uses an empty implementation for its encoder. Replace
the code with the generic simple encoder.

v4:
* print error message with drm_err()
v3:
* init pre-allocated encoder with drm_simple_encoder_init()
v2:
* rebase onto new simple-encoder interface

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200228081828.18463-4-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_drv.h
drivers/gpu/drm/mgag200/mgag200_mode.c