summaryrefslogtreecommitdiff
path: root/sys/arch/armv7
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-05-04 03:59:43 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-05-04 03:59:43 +0000
commit181720c1534f47160478b185bc9faa1de1072982 (patch)
tree08716c3925f45e319a47ddf45f888f85bfb57bef /sys/arch/armv7
parentce18cfbfcdd459bc7d493bf26ce2c031a479ad05 (diff)
Fix some misuse of the | operator. In particular | has higher
precedence than ?: ok guenther@ krw@ miod@
Diffstat (limited to 'sys/arch/armv7')
-rw-r--r--sys/arch/armv7/sunxi/sxipio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/armv7/sunxi/sxipio.c b/sys/arch/armv7/sunxi/sxipio.c
index b62d58f3700..d0beb4a7327 100644
--- a/sys/arch/armv7/sunxi/sxipio.c
+++ b/sys/arch/armv7/sunxi/sxipio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sxipio.c,v 1.5 2013/11/06 19:03:07 syl Exp $ */
+/* $OpenBSD: sxipio.c,v 1.6 2015/05/04 03:59:42 jsg Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
* Copyright (c) 2013 Artturi Alm
@@ -204,7 +204,7 @@ next:
sc->sc_gpio_pins[port][pin].pin_state =
sxipio_getpin((port * 32) + pin);
sc->sc_gpio_pins[port][pin].pin_flags = GPIO_PIN_SET |
- cfg ? GPIO_PIN_OUTPUT : GPIO_PIN_INPUT;
+ (cfg ? GPIO_PIN_OUTPUT : GPIO_PIN_INPUT);
} else {
/* disable control of taken over pins */
sc->sc_gpio_pins[port][pin].pin_caps = 0;