diff options
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/shim/src/flash.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/zephyr/shim/src/flash.c b/zephyr/shim/src/flash.c index 9802b39c3a..90e6d1a724 100644 --- a/zephyr/shim/src/flash.c +++ b/zephyr/shim/src/flash.c @@ -167,8 +167,7 @@ uint32_t crec_flash_physical_get_writable_flags(uint32_t cur_flags) } #if IS_ENABLED(CONFIG_SHELL) -static int command_flashchip(const struct shell *shell, - size_t argc, +static int command_flashchip(const struct shell *shell, size_t argc, char **argv) { uint8_t manufacturer; @@ -177,23 +176,19 @@ static int command_flashchip(const struct shell *shell, uint8_t status2; int res; - res = cros_flash_physical_get_status(cros_flash_dev, - &status1, + res = cros_flash_physical_get_status(cros_flash_dev, &status1, &status2); if (!res) - shell_fprintf(shell, - SHELL_NORMAL, - "Status 1: 0x%02x, Status 2: 0x%02x\n", - status1, status2); + shell_fprintf(shell, SHELL_NORMAL, + "Status 1: 0x%02x, Status 2: 0x%02x\n", status1, + status2); - res = cros_flash_physical_get_jedec_id(cros_flash_dev, - &manufacturer, + res = cros_flash_physical_get_jedec_id(cros_flash_dev, &manufacturer, &device); if (!res) - shell_fprintf(shell, - SHELL_NORMAL, + shell_fprintf(shell, SHELL_NORMAL, "Manufacturer: 0x%02x, DID: 0x%04x\n", manufacturer, device); |