]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
cx20442: tty_ldisc_ops::write_wakeup is optional
authorJiri Slaby <jslaby@suse.cz>
Thu, 22 Jul 2021 11:51:40 +0000 (13:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jul 2021 10:09:29 +0000 (12:09 +0200)
TTY layer does nothing if tty_ldisc_ops::write_wakeup is NULL, so there
is no need to implement an empty one in cx20442. Drop it.

Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: alsa-devel@alsa-project.org
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210722115141.516-1-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/cx20442.c

index ec8d6e74b46726fe14779fd08931aea3c312a89f..65c6b92d7b5f3a2ab3343f1533ef188913e95d0a 100644 (file)
@@ -279,11 +279,6 @@ static void v253_receive(struct tty_struct *tty, const unsigned char *cp,
        }
 }
 
-/* Line discipline .write_wakeup() */
-static void v253_wakeup(struct tty_struct *tty)
-{
-}
-
 struct tty_ldisc_ops v253_ops = {
        .name = "cx20442",
        .owner = THIS_MODULE,
@@ -291,7 +286,6 @@ struct tty_ldisc_ops v253_ops = {
        .close = v253_close,
        .hangup = v253_hangup,
        .receive_buf = v253_receive,
-       .write_wakeup = v253_wakeup,
 };
 EXPORT_SYMBOL_GPL(v253_ops);