serial: uapi: Declare all userspace-visible io types
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 1 Mar 2015 15:24:28 +0000 (10:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 02:39:55 +0000 (03:39 +0100)
commit647f162b8e7e446c4bade031eb8a1a0a83d3de82
tree2a9de477b5044df45c1e8a22aa92b6d5a993e706
parent2bb785169e9709d41220e5c18b0270883a82f85c
serial: uapi: Declare all userspace-visible io types

ioctl(TIOCGSERIAL|TIOCSSERIAL) report and can change the port->iotype.
UART drivers use the UPIO_* definitions, but the uapi header defines
parallel values and userspace uses these parallel values for ioctls;
thus the userspace values are definitive.

Define UPIO_* iotypes in terms of the uapi defines, SERIAL_IO_*;
extend the uapi defines to include all values in use by the serial
core.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/serial_core.h
include/uapi/linux/serial.h