Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions drivers/flash/soc_flash_silabs_siwx91x.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
return &cfg->flash_parameters;
}

static int flash_siwx91x_get_size(const struct device *dev, uint64_t *size)
{
const struct siwx91x_config *cfg = dev->config;

Check warning on line 56 in drivers/flash/soc_flash_silabs_siwx91x.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/flash/soc_flash_silabs_siwx91x.c:56 please, no spaces at the start of a line See https://docs.zephyrproject.org/latest/contribute/guidelines.html#coding-style for more details.
*size = cfg->size; /* already set from DT_REG_SIZE — 8 MB */

Check warning on line 57 in drivers/flash/soc_flash_silabs_siwx91x.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/flash/soc_flash_silabs_siwx91x.c:57 please, no spaces at the start of a line See https://docs.zephyrproject.org/latest/contribute/guidelines.html#coding-style for more details.
return 0;

Check warning on line 58 in drivers/flash/soc_flash_silabs_siwx91x.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/flash/soc_flash_silabs_siwx91x.c:58 please, no spaces at the start of a line See https://docs.zephyrproject.org/latest/contribute/guidelines.html#coding-style for more details.
}

static int flash_siwx91x_read(const struct device *dev, off_t offset, void *buf, size_t len)
{
const struct siwx91x_config *cfg = dev->config;
Expand Down Expand Up @@ -131,6 +138,7 @@
.write = flash_siwx91x_write,
.erase = flash_siwx91x_erase,
.get_parameters = flash_siwx91x_get_parameters,
.get_size = flash_siwx91x_get_size,
#ifdef CONFIG_FLASH_PAGE_LAYOUT
.page_layout = flash_siwx91x_page_layout,
#endif
Expand Down
Loading