mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master 1/3] param: drop priv from dev_add_param_string_ro
@ 2023-08-22  7:47 Ahmad Fatoum
  2023-08-22  7:47 ` [PATCH master 2/3] restart: fix restart_handler_get_by_name documentation Ahmad Fatoum
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ahmad Fatoum @ 2023-08-22  7:47 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

dev_add_param_string_ro() is used nowhere, but when we do, having an
unused priv parameter serves no purpose, so drop it.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 include/param.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/param.h b/include/param.h
index 76a077fd758a..5d4f7f3db52f 100644
--- a/include/param.h
+++ b/include/param.h
@@ -334,8 +334,7 @@ static inline struct param_d *dev_add_param_bool_ro(struct device *dev,
 
 static inline struct param_d *dev_add_param_string_ro(struct device *dev,
 						      const char *name,
-						      char **value,
-						      void *priv)
+						      char **value)
 {
 	return dev_add_param_string(dev, name, param_set_readonly, NULL, value, NULL);
 }
-- 
2.39.2




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

end of thread, other threads:[~2023-08-23  5:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-22  7:47 [PATCH master 1/3] param: drop priv from dev_add_param_string_ro Ahmad Fatoum
2023-08-22  7:47 ` [PATCH master 2/3] restart: fix restart_handler_get_by_name documentation Ahmad Fatoum
2023-08-22  7:47 ` [PATCH master 3/3] boards: qemu-virt: apply state/env overlay only if flash exists Ahmad Fatoum
2023-08-22 14:28 ` [PATCH master 1/3] param: drop priv from dev_add_param_string_ro Sascha Hauer
2023-08-22 16:36   ` Ahmad Fatoum
2023-08-23  5:50     ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox