]> www.infradead.org Git - users/dwmw2/linux.git/commit
serial: core: Add UPIO_UNKNOWN constant for unknown port type
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 4 Mar 2024 12:27:03 +0000 (14:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2024 13:38:28 +0000 (13:38 +0000)
commit79d713baf63c8f23cc58b304c40be33d64a12aaf
tree12e3fcbe59772419b3e89573bfacb6b5adb2c4f9
parent35c822a34b2293aedf475238c395e75858d1e8c8
serial: core: Add UPIO_UNKNOWN constant for unknown port type

In some APIs we would like to assign the special value to iotype
and compare against it in another places. Introduce UPIO_UNKNOWN
for this purpose.

Note, we can't use 0, because it's a valid value for IO port access.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240304123035.758700-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/serial_core.h