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>
This commit is contained in:
parent
2dc59e6e08
commit
2a86ef5bb8
|
@ -26,14 +26,14 @@ static void nct6687d_init(struct device *dev)
|
||||||
if (!dev->enabled)
|
if (!dev->enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
uint8_t byte;
|
||||||
|
uint8_t power_status;
|
||||||
switch (dev->path.pnp.device) {
|
switch (dev->path.pnp.device) {
|
||||||
/* TODO: Might potentially need code for EC, GPIOs, etc. */
|
/* TODO: Might potentially need code for EC, GPIOs, etc. */
|
||||||
case NCT6687D_KBC:
|
case NCT6687D_KBC:
|
||||||
pc_keyboard_init(PROBE_AUX_DEVICE);
|
pc_keyboard_init(PROBE_AUX_DEVICE);
|
||||||
break;
|
break;
|
||||||
case NCT6687D_ACPI:
|
case NCT6687D_ACPI:
|
||||||
uint8_t byte;
|
|
||||||
uint8_t power_status;
|
|
||||||
/* Set power state after power fail */
|
/* Set power state after power fail */
|
||||||
power_status = get_uint_option("power_on_after_fail",
|
power_status = get_uint_option("power_on_after_fail",
|
||||||
CONFIG_MAINBOARD_POWER_FAILURE_STATE);
|
CONFIG_MAINBOARD_POWER_FAILURE_STATE);
|
||||||
|
|
Loading…
Reference in New Issue