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-12-19 09:40:13 +01:00
2018-11-01 18:34:46 -07:00
2018-11-16 09:31:59 -06:00
2018-12-02 12:19:44 -08:00
2018-12-10 09:22:34 +01:00
2018-11-08 17:49:04 -06:00
2018-11-02 11:25:48 -07:00
2018-12-06 15:45:46 +01:00
2018-11-09 16:41:58 -06:00
2018-10-26 14:36:21 -07:00
2018-10-22 17:30:06 +01:00
2018-10-26 12:09:58 -07:00
2018-12-19 10:18:49 +01:00
2018-10-29 15:16:01 -07:00
2018-12-02 20:55:23 -08:00
2018-12-05 17:06:31 -08:00
2018-10-31 08:54:16 -07:00
2018-11-28 08:33:55 -08:00
2018-12-09 10:35:33 -08:00
2018-10-11 09:16:44 -07:00
2018-12-09 10:24:29 -08:00
2018-12-06 18:02:58 +01:00
2018-10-31 11:01:38 -07:00
2018-10-31 11:41:37 -07:00
2018-11-11 12:58:27 -08:00
2018-12-02 12:15:55 -08:00