[PATCH] of: add 'const' to of_node_full_name parameter

Grant Likely grant.likely at secretlab.ca
Thu Dec 20 00:13:24 EST 2012


On Tue, 18 Dec 2012 11:32:03 +0100, Steffen Trumtrar <s.trumtrar at pengutronix.de> wrote:
> As the function just returns the np->full_name or the string "<no-node>", the
> passed device_node pointer is not changed in any way.
> 
> The passed parameter can therefore be a const pointer.
> 
> Also, fix the following error from checkpatch.pl:
> 
> ERROR: "foo* bar" should be "foo *bar"
> +static inline const char* of_node_full_name(const struct device_node *np)
> 
> Signed-off-by: Steffen Trumtrar <s.trumtrar at pengutronix.de>

Applied, thanks. Will show up in linux-next after the v3.8 merge window closes.

g.


More information about the devicetree-discuss mailing list