[patch 2/6] staging: speakup: Add serial_out method
Okash Khawaja
okash.khawaja at gmail.com
Sun Feb 26 14:16:35 EST 2017
On Sun, Feb 26, 2017 at 3:27 AM, Samuel Thibault
<samuel.thibault at ens-lyon.org> wrote:
> So I sent a lot of mails :)
>
> A lot of them are asking to add yet more methods. I'm starting thinking
> that it's tedious to change that in each and every driver, which is kind
> of dumb anyway since it's just the same everywhere.
>
> So I'd say before doing all that stuff, rework what we thought about
> adding methods: instead of adding spk_serial_out directly in struct
> spk_synth
>
> - in spk_types.h, just before struct spk_synth, define
>
> struct spk_io_ops {
> int (*serial_out)(struct spk_synth *synth, const char ch);
> }
Along the way, thinking of renaming serial_out to synth_out - agnostic
of actual mechanism: serial or ttyio.
More information about the Speakup
mailing list