diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-08-04 18:06:37 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-18 13:15:32 +0200 |
commit | 2b86d9b8ec6efb86fc5ea44f2d49b1df17f699a1 (patch) | |
tree | ac2e698183d88dc579131f75bccf1c9471c8bc3b /drivers/accessibility/speakup/synth.c | |
parent | Linux 5.9-rc1 (diff) | |
download | linux-2b86d9b8ec6efb86fc5ea44f2d49b1df17f699a1.tar.xz linux-2b86d9b8ec6efb86fc5ea44f2d49b1df17f699a1.zip |
speakup: Fix wait_for_xmitr for ttyio case
This was missed while introducing the tty-based serial access.
The only remaining use of wait_for_xmitr with tty-based access is in
spk_synth_is_alive_restart to check whether the synth can be restarted.
With tty-based this is up to the tty layer to cope with the buffering
etc. so we can just say yes.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Link: https://lore.kernel.org/r/20200804160637.x3iycau5izywbgzl@function
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/accessibility/speakup/synth.c')
-rw-r--r-- | drivers/accessibility/speakup/synth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/accessibility/speakup/synth.c b/drivers/accessibility/speakup/synth.c index 3568bfb89912..ac47dbac7207 100644 --- a/drivers/accessibility/speakup/synth.c +++ b/drivers/accessibility/speakup/synth.c @@ -159,7 +159,7 @@ int spk_synth_is_alive_restart(struct spk_synth *synth) { if (synth->alive) return 1; - if (spk_wait_for_xmitr(synth) > 0) { + if (synth->io_ops->wait_for_xmitr(synth) > 0) { /* restart */ synth->alive = 1; synth_printf("%s", synth->init); |