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:
Brian Norris 2015-08-13 15:46:05 -07:00
parent a39f1d5e43
commit 1976367173
5 changed files with 15 additions and 21 deletions

View file

@ -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;