Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c291b3c3 authored by Brian Norris's avatar Brian Norris
Browse files

mtd: merge in mtd_to_nand() branch



In case other subsystems want to merge in this helper for use in their
drivers, let's bring in that development separately from the rest of
MTD -next development.

Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parents 1d8d8b5c 9eba47dd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -730,6 +730,11 @@ static inline struct device_node *nand_get_flash_node(struct nand_chip *chip)
	return chip->flash_node;
}

static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd)
{
	return mtd->priv;
}

/*
 * NAND Flash Manufacturer ID Codes
 */