]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sprd: Fix iotype
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 24 Feb 2015 17:06:34 +0000 (12:06 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 02:28:01 +0000 (03:28 +0100)
commitee3e994535588f990ea2e86fc9f6dda8c8722c93
treee8c1279d38c6da6444ecae120363c61d14f8252d
parenta327ad53a33e4342b4e8fdbafe805cae28812f93
serial: sprd: Fix iotype

The Spreadtrum UART is accessed with mmio; declare the proper iotype.
Also prevent userspace from assigning any other iotype via
ioctl(TIOCSSERIAL).

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sprd_serial.c