serial: core: Fix iotype userspace breakage
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 1 Mar 2015 15:18:16 +0000 (10:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 02:39:55 +0000 (03:39 +0100)
commit2bb785169e9709d41220e5c18b0270883a82f85c
tree37cd28c662ded41bfb39a80ee7e29032b1ec9556
parentc4e6dcfa00dab9b10e75bba835393b81f256310b
serial: core: Fix iotype userspace breakage

commit 3ffb1a8193bea ("serial: core: Add big-endian iotype")
re-numbered userspace-dependent values; ioctl(TIOCSSERIAL) can
assign the port iotype (which is expected to match the selected
i/o accessors), so iotype values must not be changed.

Cc: Kevin Cernekee <cernekee@gmail.com>
Cc: <stable@vger.kernel.org> # 3.19+
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Reviewed-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/serial_core.h