diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-03-27 09:51:56 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-03-27 11:08:34 -0400 |
commit | 7e7392a6e854a29016377b87bebe5ae263f65e5c (patch) | |
tree | 4161151f4357a715cfc9d6ef254c97398d54ca31 /include/drm | |
parent | 9c7d3d3e289c9870ae688780a0f9807bb5ae9faf (diff) |
drm: Drop ioctl->cmd_drv
ioctl->cmd_drv is pointless and we can just as well stick the full ioctl
definition into ioctl->cmd.
Cc: Jakob Bornecrantz <jakob@vmware.com>
Cc: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drmP.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 6195ee9b4c2a..0d501ed20775 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -253,7 +253,6 @@ struct drm_ioctl_desc { | |||
253 | unsigned int cmd; | 253 | unsigned int cmd; |
254 | int flags; | 254 | int flags; |
255 | drm_ioctl_t *func; | 255 | drm_ioctl_t *func; |
256 | unsigned int cmd_drv; | ||
257 | const char *name; | 256 | const char *name; |
258 | }; | 257 | }; |
259 | 258 | ||
@@ -263,7 +262,7 @@ struct drm_ioctl_desc { | |||
263 | */ | 262 | */ |
264 | 263 | ||
265 | #define DRM_IOCTL_DEF_DRV(ioctl, _func, _flags) \ | 264 | #define DRM_IOCTL_DEF_DRV(ioctl, _func, _flags) \ |
266 | [DRM_IOCTL_NR(DRM_IOCTL_##ioctl) - DRM_COMMAND_BASE] = {.cmd = DRM_##ioctl, .func = _func, .flags = _flags, .cmd_drv = DRM_IOCTL_##ioctl, .name = #ioctl} | 265 | [DRM_IOCTL_NR(DRM_IOCTL_##ioctl) - DRM_COMMAND_BASE] = {.cmd = DRM_IOCTL_##ioctl, .func = _func, .flags = _flags, .name = #ioctl} |
267 | 266 | ||
268 | /* Event queued up for userspace to read */ | 267 | /* Event queued up for userspace to read */ |
269 | struct drm_pending_event { | 268 | struct drm_pending_event { |