From: Gustavo A. R. Silva Date: Thu, 5 Jul 2018 20:38:07 +0000 (-0500) Subject: platform/x86: dell-laptop: Mark expected switch fall-throughs X-Git-Tag: v5.15~7389^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ecd94b8e13b014a28be48c94f751fb62f7c749e;p=platform%2Fkernel%2Flinux-starfive.git platform/x86: dell-laptop: Mark expected switch fall-throughs In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva Signed-off-by: Darren Hart (VMware) --- diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c index 06978c1..63121fd 100644 --- a/drivers/platform/x86/dell-laptop.c +++ b/drivers/platform/x86/dell-laptop.c @@ -1565,8 +1565,10 @@ static ssize_t kbd_led_timeout_store(struct device *dev, switch (unit) { case KBD_TIMEOUT_DAYS: value *= 24; + /* fall through */ case KBD_TIMEOUT_HOURS: value *= 60; + /* fall through */ case KBD_TIMEOUT_MINUTES: value *= 60; unit = KBD_TIMEOUT_SECONDS;