]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Define a drm_invalid_op ioctl implementation
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Sep 2015 11:56:26 +0000 (13:56 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Sep 2015 08:47:58 +0000 (10:47 +0200)
commitd053a3678d2fdeb093feaaaca6acc829688109f2
treec4cdc3835964beda589fd1783497ec6027cb555e
parentc9a8cfaae78852b05ae768228920b637728111ba
drm: Define a drm_invalid_op ioctl implementation

And use it in radeon to replace all the ioctls no longer valid in kms
mode. I plan to also use this later on when nuking the ums support for
i915.

Note that setting the function pointer in the ioctl table to NULL
would amount to the same, but that results in some debug output from
the drm_ioctl() function. I've figured it's cleaner to have a
special-purpose function.

Cc: Alex Deucher <alexdeucher@gmail.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_ioctl.c
drivers/gpu/drm/radeon/radeon_kms.c
include/drm/drmP.h