Sudip Mukherjee dc34da4286 char: lp: use first unused lp number while registering
When the parallel port is usb based and the lp attaches to it based on
LP_PARPORT_AUTO, we do get /dev/lp0 and when we remove the usb device
/dev/lp0 is unregistered. But if we now reconnect the usb device we get
/dev/lp1, another disconnection and reconnection and we get /dev/lp2.

Use the port number array to find the first unused lp number and use
that to register the lp device with the parallel port.

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-19 10:40:17 +01:00
..
2018-03-14 19:13:47 +01:00
2018-06-05 11:24:55 -07:00
2017-08-28 17:11:28 +02:00
2018-07-03 13:01:57 +02:00
2018-10-27 09:24:24 -07:00
2018-08-18 11:04:51 -07:00
2018-05-16 07:23:35 +02:00
2018-06-12 16:19:22 -07:00