summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTrent Piepho <tpiepho@kymetacorp.com>2015-12-10 21:50:51 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2016-01-08 08:30:55 +0100
commita3544b162ee647a5df5026cf5e7b7ce31e8635d8 (patch)
treee2411fdf5a89a5abe11fd9f1e3b26235df55286b /include
parent5e3069f3f9f4ca2f94cfa699b72c8f737a4bb9bf (diff)
downloadbarebox-a3544b162ee647a5df5026cf5e7b7ce31e8635d8.tar.gz
barebox-a3544b162ee647a5df5026cf5e7b7ce31e8635d8.tar.xz
bootstrap: constify strings
Various parameters for device names, etc. should be const strings. Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/bootstrap.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/bootstrap.h b/include/bootstrap.h
index 28852c0cb6..f8915e5c83 100644
--- a/include/bootstrap.h
+++ b/include/bootstrap.h
@@ -14,10 +14,10 @@
void bootstrap_boot(int (*func)(void), bool barebox);
#ifdef CONFIG_BOOTSTRAP_DEVFS
-void* bootstrap_read_devfs(char *devname, bool use_bb, int offset,
+void* bootstrap_read_devfs(const char *devname, bool use_bb, int offset,
int default_size, int max_size);
#else
-static inline void* bootstrap_read_devfs(char *devname, bool use_bb, int offset,
+static inline void* bootstrap_read_devfs(const char *devname, bool use_bb, int offset,
int default_size, int max_size)
{
return NULL;
@@ -25,9 +25,9 @@ static inline void* bootstrap_read_devfs(char *devname, bool use_bb, int offset,
#endif
#ifdef CONFIG_BOOTSTRAP_DISK
-void* bootstrap_read_disk(char *devname, char *fstype);
+void* bootstrap_read_disk(const char *devname, const char *fstype);
#else
-static inline void* bootstrap_read_disk(char *devname, char *fstype)
+static inline void* bootstrap_read_disk(const char *devname, const char *fstype)
{
return NULL;
}