diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-01-29 12:31:40 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-03-16 12:25:17 +0100 |
commit | cb8a239b03608079cbfb784e9ac2f522fe846c29 (patch) | |
tree | 31d5db41b6af80f0f4a9e81b07f3377acd03af0b /drivers/gpu/drm/drm_platform.c | |
parent | b9a0d15cc59e896dc6b6c07583157d78fcf72fbb (diff) | |
download | talos-op-linux-cb8a239b03608079cbfb784e9ac2f522fe846c29.tar.gz talos-op-linux-cb8a239b03608079cbfb784e9ac2f522fe846c29.zip |
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 <dh.herrmann@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_platform.c')
0 files changed, 0 insertions, 0 deletions