summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_fops.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-02-24 15:35:09 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2014-03-16 12:25:19 +0100
commit7d86cf1a4fc0c0bdb6947185c6fe71301dfea7b1 (patch)
tree9e4b0285901252512e6239a5ceac72aff4a89258 /drivers/gpu/drm/drm_fops.c
parent1abbc43761793938fba9ae745e01d5b4730a9914 (diff)
drm: inline drm_minor_get_id()
We can significantly simplify this helper by using plain multiplication. Note that we converted the minor-type to an enum earlier so this didn't work before. We also fix a minor range-bug here: the limit argument of idr_alloc() is *exclusive*, not inclusive, so we should use 64 instead of 63 as offset. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/drm_fops.c')
0 files changed, 0 insertions, 0 deletions