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)
commit8cde11b2baa1d02eb2eb955dfd47d9f2a12f12cf
treefbe1c16cdebe360663da4943753be96e87c5a193
parent6bdc00d01e202ae11fa1cae0dacbef895434483d
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