Skip to content

Commit f3b5720

Browse files
committed
Input: elantech - annotate fall-through case in elantech_use_host_notify()
This avoids a warning when building with -Wimplicit-fallthrough. Fixes: 883a2a8 ("Input: elantech - enable SMBus on new (2018+) systems") Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 883a2a8 commit f3b5720

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/input/mouse/elantech.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,6 +1842,7 @@ static bool elantech_use_host_notify(struct psmouse *psmouse,
18421842
/* SMbus implementation is stable since 2018 */
18431843
if (dmi_get_bios_year() >= 2018)
18441844
return true;
1845+
/* fall through */
18451846
default:
18461847
psmouse_dbg(psmouse,
18471848
"Ignoring SMBus bus provider %d\n", info->bus);

0 commit comments

Comments
 (0)