ref: 176206fb02ce775b21ca6e1503da7ff7a8692b20
parent: 04d1e6ffe92da311d1dd6463dfa347ad7db14c2d
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Jun 13 19:26:14 EDT 2022
imx8/gpio: use u32int for bit mask
--- a/sys/src/9/imx8/gpio.c
+++ b/sys/src/9/imx8/gpio.c
@@ -57,7 +57,7 @@
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 @@
int
gpioin(uint pin)
{
- int bit = 1 << (pin % 32);
+ u32int bit = 1 << (pin % 32);
Ctlr *ctlr = enable(pin);
if(ctlr == nil)
return -1;