summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/silicom-platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/x86/silicom-platform.c')
-rw-r--r--drivers/platform/x86/silicom-platform.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/platform/x86/silicom-platform.c b/drivers/platform/x86/silicom-platform.c
index 6ce43ccb31..c0910af16a 100644
--- a/drivers/platform/x86/silicom-platform.c
+++ b/drivers/platform/x86/silicom-platform.c
@@ -256,12 +256,7 @@ static void silicom_gpio_set(struct gpio_chip *gc,
if (direction == GPIO_LINE_DIRECTION_IN)
return;
- if (value)
- silicom_mec_port_set(channel, 0);
- else if (value == 0)
- silicom_mec_port_set(channel, 1);
- else
- pr_err("Wrong argument value: %d\n", value);
+ silicom_mec_port_set(channel, !value);
}
static int silicom_gpio_direction_output(struct gpio_chip *gc,