summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2022-03-21 12:11:15 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-03-28 10:30:04 +0200
commit8fa4b9b67f6f84558f4c7812249f5936b5ef630e (patch)
tree0c6dae795a93d6fa3677d39e82bcd79a4b538e08 /include
parent278e30e863c198f8a273bae04b4bd5e661b26cba (diff)
downloadbarebox-8fa4b9b67f6f84558f4c7812249f5936b5ef630e.tar.gz
barebox-8fa4b9b67f6f84558f4c7812249f5936b5ef630e.tar.xz
gpio: include header for BIT() used in <gpio.h>
e.g. GPIOF_ACTIVE_HIGH/LOW uses currently depend on another header defining BIT(). Remedy this. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220321111115.1569232-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gpio.h b/include/gpio.h
index 81beb47309..6134190138 100644
--- a/include/gpio.h
+++ b/include/gpio.h
@@ -5,6 +5,7 @@
#include <linux/types.h>
#include <linux/list.h>
#include <linux/iopoll.h>
+#include <linux/bitops.h>
#ifdef CONFIG_GENERIC_GPIO
void gpio_set_value(unsigned gpio, int value);