devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] of: remove duplicate declarations of __of_*_sysfs() functions
@ 2021-10-06  6:19 Zev Weiss
  2021-10-06 19:14 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Zev Weiss @ 2021-10-06  6:19 UTC (permalink / raw)
  To: Rob Herring
  Cc: Zev Weiss, Frank Rowand, Grant Likely, devicetree, linux-kernel

When CONFIG_OF_KOBJ was introduced in commit b56b5528f5b3 ("of: make
kobject and bin_attribute support configurable") and #ifdef-ed
versions of these declarations got added, the originals didn't get
removed.

Fixes: b56b5528f5b3 ("of: make kobject and bin_attribute support configurable")
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
---
 drivers/of/of_private.h | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/of/of_private.h b/drivers/of/of_private.h
index 631489f7f8c0..75e67b8bb826 100644
--- a/drivers/of/of_private.h
+++ b/drivers/of/of_private.h
@@ -127,19 +127,11 @@ struct device_node *__of_find_node_by_full_path(struct device_node *node,
 extern const void *__of_get_property(const struct device_node *np,
 				     const char *name, int *lenp);
 extern int __of_add_property(struct device_node *np, struct property *prop);
-extern int __of_add_property_sysfs(struct device_node *np,
-		struct property *prop);
 extern int __of_remove_property(struct device_node *np, struct property *prop);
-extern void __of_remove_property_sysfs(struct device_node *np,
-		struct property *prop);
 extern int __of_update_property(struct device_node *np,
 		struct property *newprop, struct property **oldprop);
-extern void __of_update_property_sysfs(struct device_node *np,
-		struct property *newprop, struct property *oldprop);
 
-extern int __of_attach_node_sysfs(struct device_node *np);
 extern void __of_detach_node(struct device_node *np);
-extern void __of_detach_node_sysfs(struct device_node *np);
 
 extern void __of_sysfs_remove_bin_file(struct device_node *np,
 				       struct property *prop);
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] of: remove duplicate declarations of __of_*_sysfs() functions
  2021-10-06  6:19 [PATCH] of: remove duplicate declarations of __of_*_sysfs() functions Zev Weiss
@ 2021-10-06 19:14 ` Rob Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2021-10-06 19:14 UTC (permalink / raw)
  To: Zev Weiss
  Cc: devicetree, Frank Rowand, Grant Likely, Rob Herring, linux-kernel

On Tue, 05 Oct 2021 23:19:42 -0700, Zev Weiss wrote:
> When CONFIG_OF_KOBJ was introduced in commit b56b5528f5b3 ("of: make
> kobject and bin_attribute support configurable") and #ifdef-ed
> versions of these declarations got added, the originals didn't get
> removed.
> 
> Fixes: b56b5528f5b3 ("of: make kobject and bin_attribute support configurable")
> Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
> ---
>  drivers/of/of_private.h | 8 --------
>  1 file changed, 8 deletions(-)
> 

Applied, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-06 19:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-06  6:19 [PATCH] of: remove duplicate declarations of __of_*_sysfs() functions Zev Weiss
2021-10-06 19:14 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).