commit | 7d86cf1a4fc0c0bdb6947185c6fe71301dfea7b1 | [log] [tgz] |
---|---|---|
author | David Herrmann <dh.herrmann@gmail.com> | Mon Feb 24 15:35:09 2014 +0100 |
committer | David Herrmann <dh.herrmann@gmail.com> | Sun Mar 16 12:25:19 2014 +0100 |
tree | 9e4b0285901252512e6239a5ceac72aff4a89258 | |
parent | 1abbc43761793938fba9ae745e01d5b4730a9914 [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>