Skip to content
Commit 7ad3c09e authored by Algapally Santosh Sagar's avatar Algapally Santosh Sagar Committed by Michal Simek
Browse files

mtd: spi-nor-core: Invert logic to reflect sst26 flash unlocked



flash_is_locked is changed to flash_is_unlocked with commit 513c6071
("mtd: spi: Convert is_locked callback to is_unlocked"). sst26_is_locked()
is also changed to sst26_is_unlocked() but the logic remained same.
Invert the logic for the flash lock/unlock to work properly.

Signed-off-by: default avatarAlgapally Santosh Sagar <santoshsagar.algapally@amd.com>
Signed-off-by: default avatarAshok Reddy Soma <ashok.reddy.soma@amd.com>
Reviewed-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: default avatarDhruva Gole <d-gole@ti.com>
Link: https://lore.kernel.org/r/20221122051833.13306-1-ashok.reddy.soma@amd.com


Signed-off-by: default avatarMichal Simek <michal.simek@amd.com>
parent b40d154c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment