]> git.baikalelectronics.ru Git - kernel.git/commit
serdev: add method to set parity
authorUlrich Hecht <ulrich.hecht+renesas@gmail.com>
Mon, 22 Jan 2018 17:56:32 +0000 (18:56 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 23 Jan 2018 08:16:05 +0000 (09:16 +0100)
commit8b050cd6f8cb7b6b07dd994b6d6787a4ba797786
treeffd4e503a4e231247334fbfb8cd1c0eaae635e6d
parente9354a91223e36b02bd23765dc0b5dee2d9eaacf
serdev: add method to set parity

Adds serdev_device_set_parity() and an implementation for ttyport.
The interface uses an enum with the values SERIAL_PARITY_NONE,
SERIAL_PARITY_EVEN and SERIAL_PARITY_ODD.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Reviewed-by: Johan Hovold <johan@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/tty/serdev/core.c
drivers/tty/serdev/serdev-ttyport.c
include/linux/serdev.h