Skip to content
Commit 55ce3026 authored by Peter Maxwell Warasila's avatar Peter Maxwell Warasila Committed by Carles Cufí
Browse files

drivers: flash: stm32l5_u5: refactor flash_stm32_page_layout() for clarity



While diagnosing a problem on the STM32U585 in this function in
flash_stm32l5_u5.c, I had difficulty sussing out the flow of the
function and conditional logic.

This refactor seeks to improve clarity through a simplified flow control
using an early return to short circuit logic on subsequent calls to the
function and slightly more thorough comments.

Tested using tests/drivers/flash on the b_u585i_iot02a and in a
proprietary application and board which uses the STM32U585 and littlefs.

Signed-off-by: default avatarPeter Maxwell Warasila <madmaxwell@soundcomesout.com>
parent ed3ad75a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment