]> git.baikalelectronics.ru Git - kernel.git/commit
tty/serdev: add serdev registration interface
authorJohan Hovold <johan@kernel.org>
Thu, 18 May 2017 15:33:00 +0000 (17:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 15:38:24 +0000 (17:38 +0200)
commitc6ff70339188346be61153d25561cf1ea40b7e00
treefbe1c16cdebe360663da4943753be96e87c5a193
parentdd2421c99701d9d7e17fd6ce7631aa86e350187c
tty/serdev: add serdev registration interface

Add a new interface for registering a serdev controller and clients, and
a helper function to deregister serdev devices (or a tty device) that
were previously registered using the new interface.

Once every driver currently using the tty_port_register_device() helpers
have been vetted and converted to use the new serdev registration
interface (at least for deregistration), we can move serdev registration
to the current helpers and get rid of the serdev-specific functions.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serdev/serdev-ttyport.c
drivers/tty/tty_port.c
include/linux/serdev.h
include/linux/tty.h