Devicetree
 help / color / mirror / Atom feed
From: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Alexander Stein <alexanders83-S0/GAf8tV78@public.gmane.org>
Cc: Frank Rowand
	<frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Grant Likely
	<grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v2 1/1] of: Empty of_read_number when !OF
Date: Mon, 4 Apr 2016 00:16:24 -0500	[thread overview]
Message-ID: <20160404051624.GN17806@rob-hp-laptop> (raw)
In-Reply-To: <1459686365-19837-1-git-send-email-alexanders83-S0/GAf8tV78@public.gmane.org>

On Sun, Apr 03, 2016 at 02:26:05PM +0200, Alexander Stein wrote:
> Introduce empty of_read_number when CONFIG_OF is not defined. This allows
> us to compile test gpio drivers.

The only user I see is sodaville. That case should use 
of_property_read_u32 instead.

Rob

> 
> Signed-off-by: Alexander Stein <alexanders83-S0/GAf8tV78@public.gmane.org>
> ---
> Changes in v2:
> * rebased to current gpio's for-next branch
> 
>  include/linux/of.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/include/linux/of.h b/include/linux/of.h
> index 7fcb681baadf..f0564a2f0a98 100644
> --- a/include/linux/of.h
> +++ b/include/linux/of.h
> @@ -672,6 +672,11 @@ static inline void of_property_clear_flag(struct property *p, unsigned long flag
>  {
>  }
>  
> +static inline u64 of_read_number(const __be32 *cell, int size)
> +{
> +	return 0;
> +}
> +
>  #define of_match_ptr(_ptr)	NULL
>  #define of_match_node(_matches, _node)	NULL
>  #endif /* CONFIG_OF */
> -- 
> 2.8.0
> 
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2016-04-04  5:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-03 12:26 [PATCH v2 1/1] of: Empty of_read_number when !OF Alexander Stein
     [not found] ` <1459686365-19837-1-git-send-email-alexanders83-S0/GAf8tV78@public.gmane.org>
2016-04-04  5:16   ` Rob Herring [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160404051624.GN17806@rob-hp-laptop \
    --to=robh-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=alexanders83-S0/GAf8tV78@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox