From 5db37b12a3c59d6aefd9a2883844f051d9058090 Mon Sep 17 00:00:00 2001 From: Alexander Wachter Date: Sun, 10 Oct 2021 18:45:48 +0200 Subject: [PATCH] drivers: hwinfo: shell: rename args to satisfy rule 5.7 This commit changes the shell argument name from shell to sh to satisfy the warning "Violation to rule 5.7 (Tag name should be unique) tag: shell" Signed-off-by: Alexander Wachter --- drivers/hwinfo/hwinfo_shell.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/hwinfo/hwinfo_shell.c b/drivers/hwinfo/hwinfo_shell.c index d4a9e5f69c8..a7289eb76d1 100644 --- a/drivers/hwinfo/hwinfo_shell.c +++ b/drivers/hwinfo/hwinfo_shell.c @@ -10,7 +10,7 @@ #include #include -static int cmd_get_device_id(const struct shell *shell, size_t argc, char **argv) +static int cmd_get_device_id(const struct shell *sh, size_t argc, char **argv) { uint8_t dev_id[16]; ssize_t length; @@ -19,21 +19,21 @@ static int cmd_get_device_id(const struct shell *shell, size_t argc, char **argv length = hwinfo_get_device_id(dev_id, sizeof(dev_id)); if (length == -ENOTSUP) { - shell_error(shell, "Not supported by hardware"); + shell_error(sh, "Not supported by hardware"); return -ENOTSUP; } else if (length < 0) { - shell_error(shell, "Error: %zd", length); + shell_error(sh, "Error: %zd", length); return length; } - shell_fprintf(shell, SHELL_NORMAL, "Length: %zd\n", length); - shell_fprintf(shell, SHELL_NORMAL, "ID: 0x"); + shell_fprintf(sh, SHELL_NORMAL, "Length: %zd\n", length); + shell_fprintf(sh, SHELL_NORMAL, "ID: 0x"); for (i = 0 ; i < length ; i++) { - shell_fprintf(shell, SHELL_NORMAL, "%02x", dev_id[i]); + shell_fprintf(sh, SHELL_NORMAL, "%02x", dev_id[i]); } - shell_fprintf(shell, SHELL_NORMAL, "\n"); + shell_fprintf(sh, SHELL_NORMAL, "\n"); return 0; }