projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
303e8eb
)
ti-st: use tty_write_room
author
Jiri Slaby
<jslaby@suse.cz>
Wed, 5 May 2021 09:19:14 +0000
(11:19 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 13 May 2021 15:03:20 +0000
(17:03 +0200)
Don't access tty->ops->write_room directly, use tty_write_room helper
instead.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Arnd Bergmann <arnd@arndb.de>
Link:
https://lore.kernel.org/r/20210505091928.22010-22-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ti-st/st_core.c
patch
|
blob
|
history
diff --git
a/drivers/misc/ti-st/st_core.c
b/drivers/misc/ti-st/st_core.c
index 05c015140cad9f8181b164e7d7d1f5f3f863b866..7f6976a9f508bde80812eb3e77ee540ad979e806 100644
(file)
--- a/
drivers/misc/ti-st/st_core.c
+++ b/
drivers/misc/ti-st/st_core.c
@@
-52,13
+52,12
@@
static void remove_channel_from_table(struct st_data_s *st_gdata,
*/
int st_get_uart_wr_room(struct st_data_s *st_gdata)
{
- struct tty_struct *tty;
if (unlikely(st_gdata == NULL || st_gdata->tty == NULL)) {
pr_err("tty unavailable to perform write");
return -1;
}
- tty = st_gdata->tty;
- return tty
->ops->write_room(
tty);
+
+ return tty
_write_room(st_gdata->
tty);
}
/*