Benjamin Herrenschmidt e37dbba665 term/serial: Avoid double lookup of serial ports
The various functions to add a port used to return port->name, and
the callers would immediately iterate all registered ports to "find"
the one just created by comparing that return value with ... port->name.

This is a waste of cycles and code. Instead, have those functions
return "port" directly.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2023-01-19 17:39:04 +01:00
..
2022-03-14 16:00:06 +01:00
2013-12-18 18:43:09 +01:00
2022-03-14 16:00:06 +01:00
2022-03-14 16:00:06 +01:00
2022-03-14 16:00:06 +01:00
2013-12-21 15:28:28 +01:00