From cacb03e490bdf46897f57582c2b31a4783e79aa0 Mon Sep 17 00:00:00 2001 From: Sam Protsenko Date: Thu, 13 Jun 2019 21:11:07 +0300 Subject: 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 Reviewed-by: Lukasz Majewski Reviewed-by: Igor Opaniuk --- include/fb_nand.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/fb_nand.h') diff --git a/include/fb_nand.h b/include/fb_nand.h index 08ab0e2..6d7999f 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 -- cgit v1.1