]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Switch to using DRM_IOCTL_DEF_DRV
authorZack Rusin <zackr@vmware.com>
Fri, 23 Jul 2021 16:51:50 +0000 (12:51 -0400)
committerZack Rusin <zackr@vmware.com>
Wed, 28 Jul 2021 18:53:22 +0000 (14:53 -0400)
commit200e235109dc88e00765bb82e537dbcf7d246a93
tree4476e771f73023dae713d3d53e4a11d9b5898fd2
parent3592491fad55885ac2dcce957081d6cacd6e32ef
drm/vmwgfx: Switch to using DRM_IOCTL_DEF_DRV

The macro has been accounting for DRM_COMMAND_BASE for a long time
now so there's no reason to still be duplicating it. Plus we were
leaving the name undefined which meant that all the DRM ioctl
warnings/errors were always listing "null" ioctl at the culprit.

This fixes the undefined ioctl name and removes duplicated code.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210723165153.113198-1-zackr@vmware.com
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c