Commit 6ce5b1ce authored by Timur Tabi's avatar Timur Tabi Committed by Greg Kroah-Hartman

tty: fix typos/errors in tty_driver.h comments

Fix various typos and other errors in comments of tty_driver.h.  The most
significant is the wrong name of a function for the description of
TTY_DRIVER_DYNAMIC_DEV.
Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1c518997
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
* unsigned int cmd, unsigned long arg); * unsigned int cmd, unsigned long arg);
* *
* This routine allows the tty driver to implement * This routine allows the tty driver to implement
* device-specific ioctl's. If the ioctl number passed in cmd * device-specific ioctls. If the ioctl number passed in cmd
* is not recognized by the driver, it should return ENOIOCTLCMD. * is not recognized by the driver, it should return ENOIOCTLCMD.
* *
* Optional * Optional
...@@ -167,12 +167,12 @@ ...@@ -167,12 +167,12 @@
* *
* void (*hangup)(struct tty_struct *tty); * void (*hangup)(struct tty_struct *tty);
* *
* This routine notifies the tty driver that it should hangup the * This routine notifies the tty driver that it should hang up the
* tty device. * tty device.
* *
* Optional: * Optional:
* *
* int (*break_ctl)(struct tty_stuct *tty, int state); * int (*break_ctl)(struct tty_struct *tty, int state);
* *
* This optional routine requests the tty driver to turn on or * This optional routine requests the tty driver to turn on or
* off BREAK status on the RS-232 port. If state is -1, * off BREAK status on the RS-232 port. If state is -1,
...@@ -358,7 +358,7 @@ static inline struct tty_driver *tty_driver_kref_get(struct tty_driver *d) ...@@ -358,7 +358,7 @@ static inline struct tty_driver *tty_driver_kref_get(struct tty_driver *d)
* overruns, either.) * overruns, either.)
* *
* TTY_DRIVER_DYNAMIC_DEV --- if set, the individual tty devices need * TTY_DRIVER_DYNAMIC_DEV --- if set, the individual tty devices need
* to be registered with a call to tty_register_driver() when the * to be registered with a call to tty_register_device() when the
* device is found in the system and unregistered with a call to * device is found in the system and unregistered with a call to
* tty_unregister_device() so the devices will be show up * tty_unregister_device() so the devices will be show up
* properly in sysfs. If not set, driver->num entries will be * properly in sysfs. If not set, driver->num entries will be
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment