summaryrefslogtreecommitdiffstats
path: root/src/ec/kontron
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2021-03-15 14:56:16 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-02-16 21:29:53 +0000
commitfff20212afe2c83af90dbec39d112a31d34b6658 (patch)
treeed5d0de6ca1aac63822c479428e1ca63bdf14748 /src/ec/kontron
parent97a0d61f0d1d5a9280ba72e2e50d87e4b853777f (diff)
downloadcoreboot-fff20212afe2c83af90dbec39d112a31d34b6658.tar.gz
coreboot-fff20212afe2c83af90dbec39d112a31d34b6658.tar.bz2
coreboot-fff20212afe2c83af90dbec39d112a31d34b6658.zip
Use the fallthrough statement in switch loops
Clang does not seem to work with 'fall through' in comments. Change-Id: Idcbe373be33ef7247548f856bfaba7ceb7f749b5 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51498 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/ec/kontron')
-rw-r--r--src/ec/kontron/kempld/kempld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ec/kontron/kempld/kempld.c b/src/ec/kontron/kempld/kempld.c
index 0489bac04233..31d927d029a3 100644
--- a/src/ec/kontron/kempld/kempld.c
+++ b/src/ec/kontron/kempld/kempld.c
@@ -82,13 +82,13 @@ static void kempld_enable_dev(struct device *const dev)
dev->ops = &kempld_uart_ops;
break;
}
- /* Fall through. */
+ __fallthrough;
case 1:
if (dev->path.generic.subid == 0) {
kempld_i2c_device_init(dev);
break;
}
- /* Fall through. */
+ __fallthrough;
default:
printk(BIOS_WARNING, "KEMPLD: Spurious device %s.\n", dev_path(dev));
break;