aboutsummaryrefslogtreecommitdiff
path: root/scripts/git.orderFile
diff options
context:
space:
mode:
authorSamuel Thibault <[email protected]>2021-01-26 23:21:45 +0100
committerGreg Kroah-Hartman <[email protected]>2021-01-27 13:12:04 +0100
commit4f2a81f3a88217e7340b2cab5c0a5ebd0112514c (patch)
treec412ef9dafdcd0ede50ec301fb7ed6c699b2712e /scripts/git.orderFile
parent1941ab1d25e098e99df18b9041667e99858fd449 (diff)
speakup: Reference synth from tty and tty from synth
We do not actually need speakup_tty and spk_ttyio_synth global variables, the synth can store the pointer to the tty, and the tty ldisc_data can store the pointer to the synth. Along the way, we can clench the initialization of the synth and the creation of the tty, so that tty is never NULL. Even if the device disappears (e.g. USB unplug), the tty structure will still be there, and we automatically stop speakup in the spk_ttyio_out error handler but keep tty until the user cleans things up. As a result, this simplifies locking a lot. Signed-off-by: Samuel Thibault <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions