Skip to contentSkip to conversation

mtd: spi: flash_is_unlocked return values fix

PATCH Jagan Teki 1 participant 1 message Dec 18, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jagan Teki

author
#1 lore raw
Quoted 9 lines · Stanislav Bolshakov

In accordance with the name of the function 'flash_is_unlocked()', it is implied that the return value will be either 'true' or 'false'. Moreover, calling this function from other parts of the program is based precisely on this fact. The value of the pointer to the actual called function 'flash_is_unlocked()' depends on the memory manufacturer and can be stm_is_unlocked() or sst26_is_unlocked(). These two functions have inconsistent return values. This patch fixes this inconsistency.

Missing s-o-b