lkml.org 
[lkml]   [2013]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/5] OF: Introduce device tree node flag helpers.
Date
On Tue,  5 Nov 2013 19:50:13 +0200, Pantelis Antoniou <panto@antoniou-consulting.com> wrote:
> Helper functions for working with device node flags.
>
> Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>

Merged, thanks

g.

> ---
> include/linux/of.h | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> diff --git a/include/linux/of.h b/include/linux/of.h
> index f95aee3..786c4f6 100644
> --- a/include/linux/of.h
> +++ b/include/linux/of.h
> @@ -114,6 +114,26 @@ static inline void of_node_set_flag(struct device_node *n, unsigned long flag)
> set_bit(flag, &n->_flags);
> }
>
> +static inline void of_node_clear_flag(struct device_node *n, unsigned long flag)
> +{
> + clear_bit(flag, &n->_flags);
> +}
> +
> +static inline int of_property_check_flag(struct property *p, unsigned long flag)
> +{
> + return test_bit(flag, &p->_flags);
> +}
> +
> +static inline void of_property_set_flag(struct property *p, unsigned long flag)
> +{
> + set_bit(flag, &p->_flags);
> +}
> +
> +static inline void of_property_clear_flag(struct property *p, unsigned long flag)
> +{
> + clear_bit(flag, &p->_flags);
> +}
> +
> extern struct device_node *of_find_all_nodes(struct device_node *prev);
>
> /*
> --
> 1.7.12
>



\
 
 \ /
  Last update: 2013-11-12 04:01    [W:0.106 / U:3.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site