]> 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)
commitf1f3e37535a030dad004dc735aaa366596ef318f
tree4476e771f73023dae713d3d53e4a11d9b5898fd2
parent92bd92c44d0d9be5dcbcda315b4be4b909ed9740
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