of: add 'const' for of_property_*_string*() parameter '*np'
authorDavid Rivshin <drivshin@allworx.com>
Wed, 2 Mar 2016 21:35:51 +0000 (16:35 -0500)
committerRob Herring <robh@kernel.org>
Thu, 3 Mar 2016 22:51:43 +0000 (16:51 -0600)
commitfe99c707fc7bb0baba75b26ed585ee3464612dbe
tree6278ded2d1fbd3e4ff063e4882c5756f9c9cbbc6
parent815d74b35e3366261ac2519af64b53f76fb0c0e1
of: add 'const' for of_property_*_string*() parameter '*np'

The of_property_{read,count,match}_string* family of functions never
modify the struct device_node pointer that is passed in, so there is no
reason for it to be non-const. Equivalent functions for all other types
already take a 'const struct device_node *np'.

Signed-off-by: David Rivshin <drivshin@allworx.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/base.c
include/linux/of.h