drm/qxl: simplify slot management
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 18 Jan 2019 12:20:00 +0000 (13:20 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 28 Jan 2019 13:24:52 +0000 (14:24 +0100)
commit2ec6bd67b76ea0afc97eaa22f369738f1a7ad7f3
tree76a9b332993b92e1d44b862958c987c6477cd8a1
parentd934ef6b98bcdc77242b66f4fa0ea0c3330ae3b6
drm/qxl: simplify slot management

Drop pointless indirection, remove the mem_slots array and index
variables, drop dynamic allocation.  Store memslots in qxl_device
instead.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190118122020.27596-4-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_drv.h
drivers/gpu/drm/qxl/qxl_kms.c