Skip to content

Commit bd697e2

Browse files
bytefiregregkh
authored andcommitted
staging: speakup: migrate acntsa, bns, dummy and txprt to ttyio
This changes the above five synths to TTY-based comms. They were chosen as a first pass because their serial comms are straightforward, i.e. they don't use serial input and don't do internal port knocking. Signed-off-by: Okash Khawaja <okash.khawaja@gmail.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1ab92da commit bd697e2

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

drivers/staging/speakup/speakup_acntsa.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ static struct spk_synth synth_acntsa = {
9999
.startup = SYNTH_START,
100100
.checkval = SYNTH_CHECK,
101101
.vars = vars,
102-
.io_ops = &spk_serial_io_ops,
102+
.io_ops = &spk_ttyio_ops,
103103
.probe = synth_probe,
104-
.release = spk_serial_release,
105-
.synth_immediate = spk_serial_synth_immediate,
104+
.release = spk_ttyio_release,
105+
.synth_immediate = spk_ttyio_synth_immediate,
106106
.catch_up = spk_do_catch_up,
107107
.flush = spk_synth_flush,
108108
.is_alive = spk_synth_is_alive_restart,
@@ -125,7 +125,7 @@ static int synth_probe(struct spk_synth *synth)
125125
{
126126
int failed;
127127

128-
failed = spk_serial_synth_probe(synth);
128+
failed = spk_ttyio_synth_probe(synth);
129129
if (failed == 0) {
130130
synth->synth_immediate(synth, "\033=R\r");
131131
mdelay(100);

drivers/staging/speakup/speakup_dummy.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ static struct spk_synth synth_dummy = {
9898
.startup = SYNTH_START,
9999
.checkval = SYNTH_CHECK,
100100
.vars = vars,
101-
.io_ops = &spk_serial_io_ops,
102-
.probe = spk_serial_synth_probe,
103-
.release = spk_serial_release,
104-
.synth_immediate = spk_serial_synth_immediate,
101+
.io_ops = &spk_ttyio_ops,
102+
.probe = spk_ttyio_synth_probe,
103+
.release = spk_ttyio_release,
104+
.synth_immediate = spk_ttyio_synth_immediate,
105105
.catch_up = spk_do_catch_up,
106106
.flush = spk_synth_flush,
107107
.is_alive = spk_synth_is_alive_restart,

drivers/staging/speakup/speakup_txprt.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ static struct spk_synth synth_txprt = {
9595
.startup = SYNTH_START,
9696
.checkval = SYNTH_CHECK,
9797
.vars = vars,
98-
.io_ops = &spk_serial_io_ops,
99-
.probe = spk_serial_synth_probe,
100-
.release = spk_serial_release,
101-
.synth_immediate = spk_serial_synth_immediate,
98+
.io_ops = &spk_ttyio_ops,
99+
.probe = spk_ttyio_synth_probe,
100+
.release = spk_ttyio_release,
101+
.synth_immediate = spk_ttyio_synth_immediate,
102102
.catch_up = spk_do_catch_up,
103103
.flush = spk_synth_flush,
104104
.is_alive = spk_synth_is_alive_restart,

0 commit comments

Comments
 (0)