Skip to contentSkip to conversation

fixup! common: oftree: Add fuction to register set status fixup

PATCH In review Teresa Remmet 3 participants 4 messages Feb 26, 2016 – Mar 1, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixup! common: oftree: Add fuction to register set status fixup

---
 common/oftree.c | 10 +++++-----
 include/of.h    |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
common/oftree.c +5 -5
index 3103bb1..e98b908 100644
@@ -140,16 +140,16 @@ static int of_register_bootargs_fixup(void)
 late_initcall(of_register_bootargs_fixup);
 
 struct of_fixup_status_data {
-	char *node;
+	const char *path;
 	bool status;
 };
 
 static int of_fixup_status(struct device_node *root, void *context)
 {
-	struct of_fixup_status_data *data = context;
+	const struct of_fixup_status_data *data = context;
 	struct device_node *node;
 
-	node = of_find_node_by_path_or_alias(root, data->node);
+	node = of_find_node_by_path_or_alias(root, data->path);
 	if (!node)
 		return -ENODEV;
 
@@ -164,12 +164,12 @@ static int of_fixup_status(struct device_node *root, void *context)
  * Register a fixup to enable or disable a node in the devicet tree by
  * passing the path or alias.
  */
-int of_register_set_status_fixup(char *node, bool status)
+int of_register_set_status_fixup(const char *path, bool status)
 {
 	struct of_fixup_status_data *data;
 
 	data = xzalloc(sizeof(*data));
-	data->node = node;
+	data->path = path;
 	data->status = status;
 
 	return of_register_fixup(of_fixup_status, (void *)data);
include/of.h +1 -1
index ae65409..8c8f57a 100644
@@ -249,7 +249,7 @@ int of_find_path(struct device_node *node, const char *propname, char **outpath,
 int of_find_path_by_node(struct device_node *node, char **outpath, unsigned flags);
 int of_register_fixup(int (*fixup)(struct device_node *, void *), void *context);
 int of_unregister_fixup(int (*fixup)(struct device_node *, void *), void *context);
-int of_register_set_status_fixup(char *node, bool status);
+int of_register_set_status_fixup(const char *node, bool status);
 struct device_node *of_find_node_by_alias(struct device_node *root,
 		const char *alias);
 struct device_node *of_find_node_by_path_or_alias(struct device_node *root,
Signature · 7 lines
1.9.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw
Quoted 5 lines · Teresa Remmet
---
 common/oftree.c | 10 +++++-----
 include/of.h    |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

Fixed up original commit, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw
Quoted 8 lines · Sascha Hauer
Quoted 5 lines · Teresa Remmet
---
 common/oftree.c | 10 +++++-----
 include/of.h    |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

Fixed up original commit, thanks

If that was automatic, there is also a typo in the Subject. s/fuc/func/

Best regards
Uwe

Signature · 7 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw
Quoted 11 lines · Uwe Kleine-König
Quoted 8 lines · Sascha Hauer
Quoted 5 lines · Teresa Remmet
---
 common/oftree.c | 10 +++++-----
 include/of.h    |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

Fixed up original commit, thanks

If that was automatic, there is also a typo in the Subject. s/fuc/func/

The typo is in the original commit aswell, so no problem ;)

Fixed it.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox