We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdd7124 commit 5518bb4Copy full SHA for 5518bb4
drivers/flash/flash_mcux_flexspi_mx25um51345g.c
@@ -67,7 +67,7 @@ struct flash_flexspi_nor_data {
67
const struct device *controller;
68
flexspi_device_config_t config;
69
flexspi_port_t port;
70
- uint64_t *size;
+ uint64_t size;
71
struct flash_pages_layout layout;
72
struct flash_parameters flash_parameters;
73
};
@@ -500,9 +500,9 @@ static const struct flash_parameters *flash_flexspi_nor_get_parameters(
500
501
static int flash_flexspi_nor_get_size(const struct device *dev, uint64_t *size)
502
{
503
- const struct flash_flexspi_nor_config *config = dev->config;
+ const struct flash_flexspi_nor_data *data = dev->data;
504
505
- *size = config->size;
+ *size = data->size;
506
507
return 0;
508
}
0 commit comments