style: drivers: comply with MISRA C:2012 Rule 15.6
Add missing braces to comply with MISRA C:2012 Rule 15.6 and also following Zephyr's style guideline. Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
This commit is contained in:
parent
535b854d87
commit
1bcae0ea9f
56 changed files with 247 additions and 131 deletions
|
@ -180,13 +180,14 @@ static void acquire(const struct device *flash)
|
|||
|
||||
if (cfg->sw_multi_periph) {
|
||||
while (mspi_dev_config(cfg->bus, &cfg->dev_id,
|
||||
MSPI_DEVICE_CONFIG_ALL, &data->dev_cfg))
|
||||
MSPI_DEVICE_CONFIG_ALL, &data->dev_cfg)) {
|
||||
;
|
||||
}
|
||||
} else {
|
||||
while (mspi_dev_config(cfg->bus, &cfg->dev_id,
|
||||
MSPI_DEVICE_CONFIG_NONE, NULL))
|
||||
MSPI_DEVICE_CONFIG_NONE, NULL)) {
|
||||
;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -195,8 +196,9 @@ static void release(const struct device *flash)
|
|||
const struct flash_mspi_atxp032_config *cfg = flash->config;
|
||||
struct flash_mspi_atxp032_data *data = flash->data;
|
||||
|
||||
while (mspi_get_channel_status(cfg->bus, cfg->port))
|
||||
while (mspi_get_channel_status(cfg->bus, cfg->port)) {
|
||||
;
|
||||
}
|
||||
|
||||
k_sem_give(&data->lock);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue