USB: cdc-acm: use idr to manage minor numbers
authorJohan Hovold <johan@kernel.org>
Mon, 18 May 2015 15:34:11 +0000 (17:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 16:30:03 +0000 (09:30 -0700)
commit6cb4f4df686e6515f43d9fec3f43226d408999b3
treeedf90f778d18418b2313573494b66391ffe2b5c2
parent83ed07c5db71bc02bd646d6eb60b48908235cdf9
USB: cdc-acm: use idr to manage minor numbers

Use the idr-interface rather than a static table to manage minor-number
allocations.

This allows us to easily switch over to fully dynamic minor allocations
when the TTY-layer can handle that.

Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c