From b4274d04f318fbc08ea6688d67ff900bc2fccf52 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Wed, 11 Feb 2015 16:33:07 -0800 Subject: cleanup: bitmasks should be unsigned values Change the struct gpio_info to use uint32_t for the mask field, instead of signed integer. BUG=none BRANCH=none TEST=make buildall Change-Id: I8cc7e3d06a00bd3c890522a896e36e1eb18a862e Signed-off-by: Bill Richardson Reviewed-on: https://chromium-review.googlesource.com/251013 Reviewed-by: Sheng-liang Song Reviewed-by: Randall Spangler --- include/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gpio.h b/include/gpio.h index efb73f7cb9..96404a94de 100644 --- a/include/gpio.h +++ b/include/gpio.h @@ -54,7 +54,7 @@ struct gpio_info { uint32_t port; /* Bitmask on that port (1 << N; 0 = signal not implemented) */ - int mask; + uint32_t mask; /* Flags (GPIO_*; see above) */ uint32_t flags; -- cgit v1.2.1