]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitce47e6f11ead79d848925dcea45772f4dfb145b0
tree2a9de477b5044df45c1e8a22aa92b6d5a993e706
parentd6d4c0b87ad4cc62ed2b9c4067365b7c3128345a
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