staging: speakup: refactor synths array to use a list
authorJustin Skists <justin.skists@juzza.co.uk>
Mon, 4 Jun 2018 09:52:12 +0000 (10:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Jun 2018 07:05:11 +0000 (09:05 +0200)
commit456aec73799f6cd31d5162d0814f8c372acffed6
tree79de5889f66ec3f97660509f8a2440f48ad705a5
parent2665df51017b15119987913bfa39d02d71cb7232
staging: speakup: refactor synths array to use a list

The synths[] array is a collection of synths acting like a list.
There is no need for synths to be an array, so refactor synths[] to use
standard kernel list_head API, instead, and modify the usages to suit.
As a side-effect, the maximum number of synths has also become redundant.

Signed-off-by: Justin Skists <justin.skists@juzza.co.uk>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/spk_types.h
drivers/staging/speakup/synth.c