diff options
Diffstat (limited to 'test/mpu.c')
-rw-r--r-- | test/mpu.c | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/test/mpu.c b/test/mpu.c index 25b2c58903..2193c0c617 100644 --- a/test/mpu.c +++ b/test/mpu.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. */ @@ -17,22 +17,18 @@ struct mpu_info { }; #if defined(CHIP_VARIANT_STM32F412) -struct mpu_info mpu_info = { - .has_mpu = true, - .num_mpu_regions = 8, - .mpu_is_unified = true -}; +struct mpu_info mpu_info = { .has_mpu = true, + .num_mpu_regions = 8, + .mpu_is_unified = true }; struct mpu_rw_regions expected_rw_regions = { .num_regions = 2, .addr = { 0x08060000, 0x08080000 }, .size = { 0x20000, 0x80000 } }; #elif defined(CHIP_VARIANT_STM32H7X3) -struct mpu_info mpu_info = { - .has_mpu = true, - .num_mpu_regions = 16, - .mpu_is_unified = true -}; +struct mpu_info mpu_info = { .has_mpu = true, + .num_mpu_regions = 16, + .mpu_is_unified = true }; struct mpu_rw_regions expected_rw_regions = { .num_regions = 1, .addr = { 0x08100000, @@ -75,7 +71,7 @@ test_static int test_mpu_update_region_valid_region(void) { volatile char data __maybe_unused; - char * const ram_base = (char * const)CONFIG_RAM_BASE; + char *const ram_base = (char *const)CONFIG_RAM_BASE; const uint8_t size_bit = 5; uint16_t mpu_attr = MPU_ATTR_NO_NO; @@ -176,7 +172,7 @@ test_static int test_mpu_get_rw_regions(void) return EC_SUCCESS; } -void run_test(int argc, char **argv) +void run_test(int argc, const char **argv) { enum ec_image cur_image = system_get_image_copy(); |