drm/mgag200: Move cursor-image update to mgag200_show_cursor()
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 27 Sep 2019 09:12:58 +0000 (11:12 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 4 Oct 2019 08:00:45 +0000 (10:00 +0200)
commit047244aa0ad96b83c4d0426dfee3c0af184a34a4
tree5f6e219e058fe6eb60091d4514bb4cd579cb8703
parent6ae04536e747ea3d9702c528ae5c4d3be171f207
drm/mgag200: Move cursor-image update to mgag200_show_cursor()

Separating the management of buffer objects from updating the hardware
cursor buffer gives the code more structure. While doing this, we can
further split the image-update code into code for writing the buffer,
setting the base scan-out address, and enabling the cursor. The first
two operations are in dedicated functions update() and set_base().

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190927091301.10574-5-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_cursor.c