diff options
author | Tomas Hlavacek <tmshlvck@gmail.com> | 2012-09-06 17:17:47 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-06 17:40:18 -0400 |
commit | b1b799164afb22711e6bee718f2a5ee669bb9517 (patch) | |
tree | 2bb7e2c7513b879531a8f0b898bc5557f4a784ed /include/linux | |
parent | 6915c0e487c822e2436683e14302c0b8a6155cc7 (diff) |
tty_register_device_attr updated for tty-next
Added tty_device_create_release() and bound to dev->release in
tty_register_device_attr().
Added tty_port_register_device_attr() and used in uart_add_one_port()
instead of tty_register_device_attr().
Signed-off-by: Tomas Hlavacek <tmshlvck@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/tty.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h index 599d60347bf0..1509b86825d8 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
@@ -507,6 +507,10 @@ extern void tty_port_link_device(struct tty_port *port, | |||
507 | extern struct device *tty_port_register_device(struct tty_port *port, | 507 | extern struct device *tty_port_register_device(struct tty_port *port, |
508 | struct tty_driver *driver, unsigned index, | 508 | struct tty_driver *driver, unsigned index, |
509 | struct device *device); | 509 | struct device *device); |
510 | extern struct device *tty_port_register_device_attr(struct tty_port *port, | ||
511 | struct tty_driver *driver, unsigned index, | ||
512 | struct device *device, void *drvdata, | ||
513 | const struct attribute_group **attr_grp); | ||
510 | extern int tty_port_alloc_xmit_buf(struct tty_port *port); | 514 | extern int tty_port_alloc_xmit_buf(struct tty_port *port); |
511 | extern void tty_port_free_xmit_buf(struct tty_port *port); | 515 | extern void tty_port_free_xmit_buf(struct tty_port *port); |
512 | extern void tty_port_put(struct tty_port *port); | 516 | extern void tty_port_put(struct tty_port *port); |