diff options
| author | 2025-06-11 12:03:16 +0200 | |
|---|---|---|
| committer | 2025-06-17 13:42:36 +0200 | |
| commit | 05b537a175442c530593013ea31b3f48d5624916 (patch) | |
| tree | 26259db2c006d96c5afdd83384f73b88d38726dc /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | serial: 8250: drop DEBUG_AUTOCONF() macro (diff) | |
serial: 8250: invert serial8250_register_8250_port() CIR condition
There is no point in a long 'if' in serial8250_register_8250_port() to
just return ENOSPC for PORT_8250_CIR ports. Invert the condition and
return immediately.
'gpios' variable was moved to its set location.
And return ENODEV instead of ENOSPC. The latter is a leftover from the
previous find-uart 'if'. The former makes a lot more sense in this case.
Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20250611100319.186924-31-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
