summaryrefslogtreecommitdiff
path: root/chip/npcx/rom_chip.h
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 14:25:25 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-28 08:40:29 +0000
commit5f1af845c34bbea308a193d70ae6d7058f12559d (patch)
tree64ae3e0c6fcd8c6ab0a9d3cc0eead4ef73ce8106 /chip/npcx/rom_chip.h
parentb4246fb6c728b28bd9d59470347a75b9140b2916 (diff)
downloadchrome-ec-5f1af845c34bbea308a193d70ae6d7058f12559d.tar.gz
chip/npcx/rom_chip.h: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: I0e294bef1946cbed9297e255142717aa09bde947 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729429 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'chip/npcx/rom_chip.h')
-rw-r--r--chip/npcx/rom_chip.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/chip/npcx/rom_chip.h b/chip/npcx/rom_chip.h
index bb66f95e88..fe6678971f 100644
--- a/chip/npcx/rom_chip.h
+++ b/chip/npcx/rom_chip.h
@@ -42,25 +42,23 @@ enum API_RETURN_STATUS_T {
/*
* Macro functions of ROM api functions
*/
-#define ADDR_DOWNLOAD_FROM_FLASH (*(volatile uint32_t *) 0x40)
+#define ADDR_DOWNLOAD_FROM_FLASH (*(volatile uint32_t *)0x40)
#define download_from_flash(src_offset, dest_addr, size, sign, exe_addr, \
- status) \
- (((download_from_flash_ptr) ADDR_DOWNLOAD_FROM_FLASH) \
- (src_offset, dest_addr, size, sign, exe_addr, status))
+ status) \
+ (((download_from_flash_ptr)ADDR_DOWNLOAD_FROM_FLASH)( \
+ src_offset, dest_addr, size, sign, exe_addr, status))
/******************************************************************************/
/*
* Declarations of ROM api functions
*/
-typedef void (*download_from_flash_ptr) (
+typedef void (*download_from_flash_ptr)(
uint32_t src_offset, /* The offset of the data to be downloaded */
- uint32_t dest_addr, /* The address of the downloaded data in the RAM*/
- uint32_t size, /* Number of bytes to download */
+ uint32_t dest_addr, /* The address of the downloaded data in the RAM*/
+ uint32_t size, /* Number of bytes to download */
enum API_SIGN_OPTIONS_T sign, /* Need CRC check or not */
uint32_t exe_addr, /* jump to this address after download if not zero */
enum API_RETURN_STATUS_T *status /* Status fo download */
);
-
-
#endif /* __CROS_EC_ROM_CHIP_H_ */