summaryrefslogtreecommitdiff
path: root/include/fb_nand.h
diff options
context:
space:
mode:
authorSam Protsenko <semen.protsenko@linaro.org>2019-06-13 21:11:07 +0300
committerMarek Vasut <marex@denx.de>2019-06-14 12:39:54 +0200
commitcacb03e490bdf46897f57582c2b31a4783e79aa0 (patch)
treebc88d034e62551db2483837c76d9e6414e4399d9 /include/fb_nand.h
parent97a0c6ff577d57f162abc696c4efc962981229b1 (diff)
downloadu-boot-cacb03e490bdf46897f57582c2b31a4783e79aa0.tar.gz
fastboot: Use const qualifier for char *part_name
In fastboot_*_get_part_info() functions we can use stronger typing by expecting const strings. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Diffstat (limited to 'include/fb_nand.h')
-rw-r--r--include/fb_nand.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fb_nand.h b/include/fb_nand.h
index 08ab0e28a6..6d7999f262 100644
--- a/include/fb_nand.h
+++ b/include/fb_nand.h
@@ -16,8 +16,8 @@
* @part_info: Pointer to returned part_info pointer
* @response: Pointer to fastboot response buffer
*/
-int fastboot_nand_get_part_info(char *part_name, struct part_info **part_info,
- char *response);
+int fastboot_nand_get_part_info(const char *part_name,
+ struct part_info **part_info, char *response);
/**
* fastboot_nand_flash_write() - Write image to NAND for fastboot