summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-07-29 10:53:14 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-11-09 14:26:03 +0000
commit2a86ef5bb8565c110a66426273e11cfe3dc24087 (patch)
tree5f83262c58df0ade5802d1cb89a65e7d246718b6
parent2dc59e6e08dab5d0e06bf4ad4af8a0535fecde23 (diff)
superio/nuvoton/nct6687d: Fix unexpected expression
Expression after a case statement are not allowed. This fixes building with clang. Change-Id: Ie369454f10b515aa5601a5e78330e12f4b7a5e4c Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/66265 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michał Żygowski <michal.zygowski@3mdeb.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
-rw-r--r--src/superio/nuvoton/nct6687d/superio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/superio/nuvoton/nct6687d/superio.c b/src/superio/nuvoton/nct6687d/superio.c
index 4795659118..a2eea8c50f 100644
--- a/src/superio/nuvoton/nct6687d/superio.c
+++ b/src/superio/nuvoton/nct6687d/superio.c
@@ -26,14 +26,14 @@ static void nct6687d_init(struct device *dev)
if (!dev->enabled)
return;
+ uint8_t byte;
+ uint8_t power_status;
switch (dev->path.pnp.device) {
/* TODO: Might potentially need code for EC, GPIOs, etc. */
case NCT6687D_KBC:
pc_keyboard_init(PROBE_AUX_DEVICE);
break;
case NCT6687D_ACPI:
- uint8_t byte;
- uint8_t power_status;
/* Set power state after power fail */
power_status = get_uint_option("power_on_after_fail",
CONFIG_MAINBOARD_POWER_FAILURE_STATE);