mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] gpio: include header for BIT() used in <gpio.h>
@ 2022-03-21 11:11 Ahmad Fatoum
  2022-03-28  8:30 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2022-03-21 11:11 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

From: Ahmad Fatoum <ahmad@a3f.at>

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>
---
 include/gpio.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/gpio.h b/include/gpio.h
index 81beb4730929..6134190138c3 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);
-- 
2.30.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] gpio: include header for BIT() used in <gpio.h>
  2022-03-21 11:11 [PATCH] gpio: include header for BIT() used in <gpio.h> Ahmad Fatoum
@ 2022-03-28  8:30 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2022-03-28  8:30 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Mon, Mar 21, 2022 at 12:11:15PM +0100, Ahmad Fatoum wrote:
> From: Ahmad Fatoum <ahmad@a3f.at>
> 
> 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>
> ---
>  include/gpio.h | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks

Sascha

> 
> diff --git a/include/gpio.h b/include/gpio.h
> index 81beb4730929..6134190138c3 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);
> -- 
> 2.30.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-28  8:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-21 11:11 [PATCH] gpio: include header for BIT() used in <gpio.h> Ahmad Fatoum
2022-03-28  8:30 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox