summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva2018-07-05 22:38:07 +0200
committerDarren Hart (VMware)2018-11-29 01:13:25 +0100
commit4ecd94b8e13b014a28be48c94f751fb62f7c749e (patch)
treeab614d7f321bbba0187d5c06afb3e5e4cb2437ad
parentplatform/x86: ideapad-laptop: Add Yoga 2 13 to no_hw_rfkill list (diff)
downloadkernel-qcow2-linux-4ecd94b8e13b014a28be48c94f751fb62f7c749e.tar.gz
kernel-qcow2-linux-4ecd94b8e13b014a28be48c94f751fb62f7c749e.tar.xz
kernel-qcow2-linux-4ecd94b8e13b014a28be48c94f751fb62f7c749e.zip
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 <gustavo@embeddedor.com> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
-rw-r--r--drivers/platform/x86/dell-laptop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
index 06978c14c83b..63121fd22c2e 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;