From: David Herrmann Date: Wed, 29 Jan 2014 11:31:40 +0000 (+0100) Subject: drm: turn DRM_MINOR_* into enum X-Git-Tag: v3.15-rc1~51^2~56^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb8a239b03608079cbfb784e9ac2f522fe846c29;p=pandora-kernel.git drm: turn DRM_MINOR_* into enum Use enum for DRM_MINOR_* constants to avoid hard-coding the IDs. Furthermore, add a DRM_MINOR_CNT so we can perform range-checks in follow-ups. This changes the IDs of the minor-types by -1, but they're not used as indices so this is fine. Signed-off-by: David Herrmann Reviewed-by: Daniel Vetter --- Reading git-diff-tree failed