|
@@ -64,9 +64,10 @@ struct stmicro_spi_flash_params {
|
|
const char *name;
|
|
const char *name;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+/* spi_flash needs to be first so upper layers can free() it */
|
|
struct stmicro_spi_flash {
|
|
struct stmicro_spi_flash {
|
|
- const struct stmicro_spi_flash_params *params;
|
|
|
|
struct spi_flash flash;
|
|
struct spi_flash flash;
|
|
|
|
+ const struct stmicro_spi_flash_params *params;
|
|
};
|
|
};
|
|
|
|
|
|
static inline struct stmicro_spi_flash *to_stmicro_spi_flash(struct spi_flash
|
|
static inline struct stmicro_spi_flash *to_stmicro_spi_flash(struct spi_flash
|