mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
mtd: spi-nor: embed struct mtd_info within struct spi_nor
This reflects the proper layering, so let's do it. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Tested-by: Joachim Eastwood <manabian@gmail.com>
This commit is contained in:
parent
a39f1d5e43
commit
1976367173
5 changed files with 15 additions and 21 deletions
|
@ -162,7 +162,7 @@ struct mtd_info;
|
|||
* @priv: the private data
|
||||
*/
|
||||
struct spi_nor {
|
||||
struct mtd_info *mtd;
|
||||
struct mtd_info mtd;
|
||||
struct mutex lock;
|
||||
struct device *dev;
|
||||
u32 page_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue