drivers/flash: removed write protection API implementations
flash_write_protection_set() API was deprecated so driver implementation interface is left behind as well. This patch removes all implementation pointed by the interface 'struct flash_driver_api.write_protection'. Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
This commit is contained in:
parent
59a79969e8
commit
7d53e0118b
17 changed files with 0 additions and 165 deletions
|
@ -224,14 +224,6 @@ static int flash_mcux_write(const struct device *dev, off_t offset,
|
|||
return (rc == kStatus_Success) ? 0 : -EINVAL;
|
||||
}
|
||||
|
||||
static int flash_mcux_write_protection(const struct device *dev, bool enable)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
ARG_UNUSED(enable);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_FLASH_PAGE_LAYOUT)
|
||||
static const struct flash_pages_layout dev_layout = {
|
||||
.pages_count = DT_REG_SIZE(SOC_NV_FLASH_NODE) /
|
||||
|
@ -259,7 +251,6 @@ flash_mcux_get_parameters(const struct device *dev)
|
|||
static struct flash_priv flash_data;
|
||||
|
||||
static const struct flash_driver_api flash_mcux_api = {
|
||||
.write_protection = flash_mcux_write_protection,
|
||||
.erase = flash_mcux_erase,
|
||||
.write = flash_mcux_write,
|
||||
.read = flash_mcux_read,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue