aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/accessibility/speakup/speakup_decpc.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-01-26 23:21:44 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-27 13:12:04 +0100
commit1941ab1d25e098e99df18b9041667e99858fd449 (patch)
tree02e685db500476946aed43b15555c18247e265d8 /drivers/accessibility/speakup/speakup_decpc.c
parent0fc99422bc034de018607ef6b70f92d4bc4a236d (diff)
downloadlinux-1941ab1d25e098e99df18b9041667e99858fd449.tar.gz
speakup: add the missing synth parameter to all io functions
So that we can avoid the spk_ttyio_synth global variable in the next commit. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Link: https://lore.kernel.org/r/20210126222147.3848175-2-samuel.thibault@ens-lyon.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/accessibility/speakup/speakup_decpc.c')
-rw-r--r--drivers/accessibility/speakup/speakup_decpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/accessibility/speakup/speakup_decpc.c b/drivers/accessibility/speakup/speakup_decpc.c
index 96f24c848cc5..dec314dee214 100644
--- a/drivers/accessibility/speakup/speakup_decpc.c
+++ b/drivers/accessibility/speakup/speakup_decpc.c
@@ -125,7 +125,7 @@ enum { PRIMARY_DIC = 0, USER_DIC, COMMAND_DIC, ABBREV_DIC };
#define SYNTH_IO_EXTENT 8
static int synth_probe(struct spk_synth *synth);
-static void dtpc_release(void);
+static void dtpc_release(struct spk_synth *synth);
static const char *synth_immediate(struct spk_synth *synth, const char *buf);
static void do_catch_up(struct spk_synth *synth);
static void synth_flush(struct spk_synth *synth);
@@ -474,7 +474,7 @@ static int synth_probe(struct spk_synth *synth)
return 0;
}
-static void dtpc_release(void)
+static void dtpc_release(struct spk_synth *synth)
{
spk_stop_serial_interrupt();
if (speakup_info.port_tts)