drm: inline drm_minor_get_id()
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 24 Feb 2014 14:35:09 +0000 (15:35 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 16 Mar 2014 11:25:19 +0000 (12:25 +0100)
commit7d86cf1a4fc0c0bdb6947185c6fe71301dfea7b1
tree9e4b0285901252512e6239a5ceac72aff4a89258
parent1abbc43761793938fba9ae745e01d5b4730a9914
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>
drivers/gpu/drm/drm_stub.c