tty: n_gsm, eliminate indirection for gsm->{output,error}()
authorJiri Slaby <jslaby@suse.cz>
Tue, 18 Aug 2020 08:56:48 +0000 (10:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Aug 2020 11:51:17 +0000 (13:51 +0200)
commita579767c1f4e3270818504843a86ba3277127152
treea6ce7bc587fb816f611e3ff33460c262ec9b2153
parenta89313825b0657273e1938aea7f13afe9abb44e8
tty: n_gsm, eliminate indirection for gsm->{output,error}()

gsm->output and ->error are set only to gsmld_output and gsm_error,
respectively. Call these functions directly and remove error and output
function pointers from struct gsm_mux completely.

Note: we need a forward declaration of gsmld_output now.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200818085655.12071-1-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c