diff options
author | Oliver Brown <oliver.brown@nxp.com> | 2018-01-15 15:25:55 -0600 |
---|---|---|
committer | Oliver Brown <oliver.brown@nxp.com> | 2018-01-17 07:14:33 -0600 |
commit | b9a884563376c7c32079b3da4f788216180383cf (patch) | |
tree | c4e937439380b4d82030a1b4eaa19c5b4d10695b | |
parent | 07295a9eba92e77f30fa236f9e9c7bde14902bef (diff) |
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>
-rw-r--r-- | drivers/video/imx/Makefile | 2 | ||||
-rw-r--r-- | drivers/video/imx/hdp_load.c (renamed from drivers/video/imx/hdpload.c) | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/imx/Makefile b/drivers/video/imx/Makefile index 0ec6e0ea68..93d6deba1a 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 index 0ffc960a6d..66eb3e9385 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; |