OSDN Git Service

staging: speakup: move spk_stop_serial_interrupt into synth-specific release function
authorOkash Khawaja <okash.khawaja@gmail.com>
Tue, 14 Mar 2017 13:41:54 +0000 (13:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Mar 2017 02:12:02 +0000 (11:12 +0900)
commita50ef3165489c74c7d7c9f7559d9bbb198dca154
tree2048ec8e22823d779d1ce57540b144ff45ae687c
parent1e441594e509c35a222e397d224de17cee103740
staging: speakup: move spk_stop_serial_interrupt into synth-specific release function

This moves call to spk_stop_serial_interrupt() function out of synth_release()
and into release() method of specific spk_synth instances. This is because
the spk_stop_serial_interrupt() call is specific to current serial i/o
implementation. Moving it into each synth's release() method gives the
decision of calling  spk_stop_serial_interrupt() to that synth.

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>
drivers/staging/speakup/serialio.c
drivers/staging/speakup/speakup_acntpc.c
drivers/staging/speakup/speakup_decpc.c
drivers/staging/speakup/speakup_dtlk.c
drivers/staging/speakup/speakup_keypc.c
drivers/staging/speakup/synth.c