Skip to content
Snippets Groups Projects
Commit cdcd92ca authored by Oliver Brown's avatar Oliver Brown Committed by Troy Kisky
Browse files

MLK-17375 video: imx: hdp: fix "n" arg for strncmp call


Renaming hdpload to hdp_load for consistancy.
Correcting the strncmp to use only 4 characters to match "load" argument

Signed-off-by: default avatarOliver Brown <oliver.brown@nxp.com>
parent 9496e1f6
No related branches found
No related tags found
No related merge requests found
......@@ -5,4 +5,4 @@
#
UBOOTINCLUDE += -I$(srctree)/drivers/video/imx/hdp
obj-$(CONFIG_VIDEO_IMX_HDP_LOAD) += hdpload.o hdp/
obj-$(CONFIG_VIDEO_IMX_HDP_LOAD) += hdp_load.o hdp/
/*
* Copyright 2017 NXP
* Copyright 2017-2018 NXP
*
* SPDX-License-Identifier: GPL-2.0+
*/
......@@ -62,7 +62,7 @@ int do_hdp(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
if (strncmp(argv[1], "tracescfw", 9) == 0) {
g_debug_scfw = 1;
printf("Enabled SCFW API tracing\n");
} else if (strncmp(argv[1], "load", 7) == 0) {
} else if (strncmp(argv[1], "load", 4) == 0) {
unsigned long address = 0;
unsigned long offset = 0x2000;
const int iram_size = 0x10000;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment