summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/src/flash.c')
-rw-r--r--zephyr/shim/src/flash.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/zephyr/shim/src/flash.c b/zephyr/shim/src/flash.c
index 9802b39c3a..8aa7deecf5 100644
--- a/zephyr/shim/src/flash.c
+++ b/zephyr/shim/src/flash.c
@@ -1,4 +1,4 @@
-/* Copyright 2020 The Chromium OS Authors. All rights reserved.
+/* Copyright 2020 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -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);