]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit675c787bbdf6f8764890c0c4d62e1870c7a97703
tree6278ded2d1fbd3e4ff063e4882c5756f9c9cbbc6
parentf45ce4494de8d93c77c1cc61540b56cf9065fe79
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