From 176206fb02ce775b21ca6e1503da7ff7a8692b20 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 13 Jun 2022 23:26:14 +0000 Subject: [PATCH] imx8/gpio: use u32int for bit mask --- sys/src/9/imx8/gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/src/9/imx8/gpio.c b/sys/src/9/imx8/gpio.c index 09f35ed5c..0fdb3aefd 100644 --- a/sys/src/9/imx8/gpio.c +++ b/sys/src/9/imx8/gpio.c @@ -57,7 +57,7 @@ enable(uint pin) void gpioout(uint pin, int set) { - int bit = 1 << (pin % 32); + u32int bit = 1 << (pin % 32); Ctlr *ctlr = enable(pin); if(ctlr == nil) return; @@ -72,7 +72,7 @@ gpioout(uint pin, int set) int gpioin(uint pin) { - int bit = 1 << (pin % 32); + u32int bit = 1 << (pin % 32); Ctlr *ctlr = enable(pin); if(ctlr == nil) return -1;