Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf04d45e authored by Jordan Crouse's avatar Jordan Crouse
Browse files

drm/msm: Remove DRM_MSM_NUM_IOCTLS



The ioctl array is sparsely populated but the compiler will make sure
that it is sufficiently sized for all the values that we have so we
can safely use ARRAY_SIZE() instead of having a constantly changing
#define in the uapi header.

Change-Id: Ic0dedbad39f30abb8ce340289089d2f3a5f6fe36
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent a8cbfeb8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1683,7 +1683,7 @@ static struct drm_driver msm_driver = {
	.debugfs_cleanup    = msm_debugfs_cleanup,
#endif
	.ioctls             = msm_ioctls,
	.num_ioctls         = DRM_MSM_NUM_IOCTLS,
	.num_ioctls         = ARRAY_SIZE(msm_ioctls),
	.fops               = &fops,
	.name               = "msm_drm",
	.desc               = "MSM Snapdragon DRM",
+0 −1
Original line number Diff line number Diff line
@@ -267,7 +267,6 @@ struct drm_msm_event_resp {
#define DRM_SDE_WB_CONFIG              0x40
#define DRM_MSM_REGISTER_EVENT         0x41
#define DRM_MSM_DEREGISTER_EVENT       0x42
#define DRM_MSM_NUM_IOCTLS             0x43

/**
 * Currently DRM framework supports only VSYNC event.