]> 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)
commit1cf7c5e488f84391a8cdf06bb5292c62c72a70c6
treefbe1c16cdebe360663da4943753be96e87c5a193
parent63329655b5616e4880ded8a36a9adaa953392d7d
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