OSDN Git Service

mtd: rawnand: denali: use more nand_chip pointers for internal functions
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 2 Apr 2019 04:03:01 +0000 (13:03 +0900)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 18 Apr 2019 06:54:02 +0000 (08:54 +0200)
commit750f69b82641603700bf8bc1c70ef6d43bba5cab
tree4b1a8dec8bbee22bc3fce6d07cfa533cb54a39ee
parente39bb786816453788836c367caefd72eceea380c
mtd: rawnand: denali: use more nand_chip pointers for internal functions

With the recent refactoring, the NAND driver hooks now take a pointer
to nand_chip. Add to_denali() in order to convert (struct nand_chip *)
to (struct denali_nand_info *) directly. It is more useful than the
current mtd_to_denali().

I changed some helper functions to take (struct nand_chip *). This will
avoid pointer conversion back and forth, and ease further development.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/denali.c