zephyr/shim/src/cbi/cros_cbi_fw_config.c: Format with clang-format
BRANCH=none
TEST=none
@@ -87,8 +87,7 @@ BUILD_ASSERT(TOTAL_FW_CONFIG_NODES_SIZE <= 32,
DT_FOREACH_CHILD_STATUS_OKAY(inst, OR_FIELD_SHIFT_MASK)
#define TOTAL_BITS_SET \
- (0 DT_FOREACH_STATUS_OKAY(CBI_FW_CONFIG_COMPAT, \
- FIELDS_ALL_BITS_SET))
+ (0 DT_FOREACH_STATUS_OKAY(CBI_FW_CONFIG_COMPAT, FIELDS_ALL_BITS_SET))
BUILD_ASSERT(BIT_COUNT(TOTAL_BITS_SET) == TOTAL_FW_CONFIG_NODES_SIZE,
"CBI FW Config has overlapping fields");
@@ -98,8 +97,7 @@ BUILD_ASSERT(BIT_COUNT(TOTAL_BITS_SET) == TOTAL_FW_CONFIG_NODES_SIZE,
* The value must fit within the parent's defined size.
*/
#define FW_VALUE_BUILD_ASSERT(inst) \
- BUILD_ASSERT(DT_PROP(inst, value) < \
- (1 << FW_PARENT_SIZE(inst)), \
+ BUILD_ASSERT(DT_PROP(inst, value) < (1 << FW_PARENT_SIZE(inst)), \
"CBI FW Config value too big");
DT_FOREACH_STATUS_OKAY(CBI_FW_CONFIG_VALUE_COMPAT, FW_VALUE_BUILD_ASSERT)
@@ -173,8 +171,7 @@ void cros_cbi_fw_config_init(void)
LOG_INF("Read CBI FW Config : 0x%08X\n", cached_fw_config);
}
-static int cros_cbi_fw_config_get_field(
- uint32_t cached_fw_config,
+static int cros_cbi_fw_config_get_field(uint32_t cached_fw_config,
enum cbi_fw_config_field_id field_id,
uint32_t *value)
{
@@ -184,8 +181,7 @@ static int cros_cbi_fw_config_get_field(
* and create cases for all of their child nodes.
*/
DT_FOREACH_STATUS_OKAY_VARGS(CBI_FW_CONFIG_COMPAT,
- FW_FIELD_NODES,
- cached_fw_config,
+ FW_FIELD_NODES, cached_fw_config,
value)
default:
return -EINVAL;
