mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] param: make dev_add_param_string_fixed value parameter const
@ 2019-09-09  8:24 Ahmad Fatoum
  2019-09-09  9:01 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2019-09-09  8:24 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

The function is so far unused and the parameter's only use is to be passed
as argument to dev_add_param_fixed which is const as well.

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

diff --git a/include/param.h b/include/param.h
index b618a2305d89..dea699049739 100644
--- a/include/param.h
+++ b/include/param.h
@@ -272,7 +272,7 @@ static inline struct param_d *dev_add_param_string_ro(struct device_d *dev, cons
 }
 
 static inline struct param_d *dev_add_param_string_fixed(struct device_d *dev, const char *name,
-		char *value)
+		const char *value)
 {
 	return dev_add_param_fixed(dev, name, value);
 }
-- 
2.23.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH] param: make dev_add_param_string_fixed value parameter const
  2019-09-09  8:24 [PATCH] param: make dev_add_param_string_fixed value parameter const Ahmad Fatoum
@ 2019-09-09  9:01 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2019-09-09  9:01 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Mon, Sep 09, 2019 at 10:24:07AM +0200, Ahmad Fatoum wrote:
> The function is so far unused and the parameter's only use is to be passed
> as argument to dev_add_param_fixed which is const as well.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  include/param.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha


-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-09-09  9:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-09  8:24 [PATCH] param: make dev_add_param_string_fixed value parameter const Ahmad Fatoum
2019-09-09  9:01 ` Sascha Hauer

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