Input: elantech - annotate fall-through case in elantech_use_host_notify()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 24 Jul 2019 07:29:03 +0000 (10:29 +0300)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 24 Jul 2019 09:43:51 +0000 (12:43 +0300)
This avoids a warning when building with -Wimplicit-fallthrough.

Fixes: 883a2a80f79c ("Input: elantech - enable SMBus on new (2018+) systems")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elantech.c

index 73544776a9edc8c5639a1d06ed649f72698ee0ac..04fe43440a3c8740d58ee1cb944fc3b7099aa981 100644 (file)
@@ -1842,6 +1842,7 @@ static bool elantech_use_host_notify(struct psmouse *psmouse,
                /* SMbus implementation is stable since 2018 */
                if (dmi_get_bios_year() >= 2018)
                        return true;
+               /* fall through */
        default:
                psmouse_dbg(psmouse,
                            "Ignoring SMBus bus provider %d\n", info->bus);