summaryrefslogtreecommitdiff
path: root/include/fpga.h
diff options
context:
space:
mode:
authorTien Fong Chee <tien.fong.chee@intel.com>2019-02-15 15:57:07 +0800
committerMichal Simek <michal.simek@xilinx.com>2019-04-16 11:51:33 +0200
commit3003c445b3cb1d1ca7e2304bfa3e2faf2ae02f80 (patch)
treef412af2514b53ac4eef2cd7ae1f8e07e05f91188 /include/fpga.h
parent9184c92f46da7a0cd53a806046e56911b61c90e2 (diff)
downloadu-boot-3003c445b3cb1d1ca7e2304bfa3e2faf2ae02f80.tar.gz
fpga: Replace char * with const char * for filename
Ensure the string for filename is always constant, otherwise it can be corrupted by the writing. Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include/fpga.h')
-rw-r--r--include/fpga.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/fpga.h b/include/fpga.h
index 195f0bdd57..51de5c55f8 100644
--- a/include/fpga.h
+++ b/include/fpga.h
@@ -41,7 +41,7 @@ typedef struct { /* typedef fpga_desc */
unsigned int blocksize;
char *interface;
char *dev_part;
- char *filename;
+ const char *filename;
int fstype;
} fpga_fs_info;