Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64b94701 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by David S. Miller
Browse files

[SPARC/64]: constify of_get_property return



Finally, we actually change the functions themselves.

Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3198514d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@ EXPORT_SYMBOL(of_find_property);
 * Find a property with a given name for a given node
 * and return the value.
 */
void *of_get_property(struct device_node *np, const char *name, int *lenp)
const void *of_get_property(struct device_node *np, const char *name, int *lenp)
{
	struct property *pp = of_find_property(np,name,lenp);
	return pp ? pp->value : NULL;
+1 −1
Original line number Diff line number Diff line
@@ -174,7 +174,7 @@ EXPORT_SYMBOL(of_find_property);
 * Find a property with a given name for a given node
 * and return the value.
 */
void *of_get_property(struct device_node *np, const char *name, int *lenp)
const void *of_get_property(struct device_node *np, const char *name, int *lenp)
{
	struct property *pp = of_find_property(np,name,lenp);
	return pp ? pp->value : NULL;
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ extern struct property *of_find_property(struct device_node *np,
					 const char *name,
					 int *lenp);
extern int of_device_is_compatible(struct device_node *device, const char *);
extern void *of_get_property(struct device_node *node, const char *name,
extern const void *of_get_property(struct device_node *node, const char *name,
			     int *lenp);
#define get_property(node,name,lenp) of_get_property(node,name,lenp)
extern int of_set_property(struct device_node *node, const char *name, void *val, int len);
+2 −2
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ extern struct property *of_find_property(struct device_node *np,
					 const char *name,
					 int *lenp);
extern int of_device_is_compatible(struct device_node *device, const char *);
extern void *of_get_property(struct device_node *node, const char *name,
extern const void *of_get_property(struct device_node *node, const char *name,
				   int *lenp);
#define get_property(node,name,lenp) of_get_property(node,name,lenp)
extern int of_set_property(struct device_node *node, const char *name, void *val, int len);