From cdcd92ca75afd242ccadb9a6e6b95dfbd07a3c2c Mon Sep 17 00:00:00 2001 From: Oliver Brown <oliver.brown@nxp.com> Date: Mon, 15 Jan 2018 15:25:55 -0600 Subject: [PATCH] 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: Oliver Brown <oliver.brown@nxp.com> --- drivers/video/imx/Makefile | 2 +- drivers/video/imx/{hdpload.c => hdp_load.c} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename drivers/video/imx/{hdpload.c => hdp_load.c} (97%) diff --git a/drivers/video/imx/Makefile b/drivers/video/imx/Makefile index 0ec6e0ea680..93d6deba1a4 100644 --- a/drivers/video/imx/Makefile +++ b/drivers/video/imx/Makefile @@ -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/ diff --git a/drivers/video/imx/hdpload.c b/drivers/video/imx/hdp_load.c similarity index 97% rename from drivers/video/imx/hdpload.c rename to drivers/video/imx/hdp_load.c index 0ffc960a6da..66eb3e93856 100644 --- a/drivers/video/imx/hdpload.c +++ b/drivers/video/imx/hdp_load.c @@ -1,5 +1,5 @@ /* - * 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; -- GitLab