]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit574357aa70637ffce8decc475ea6dce7cf103d2a
tree4b1a8dec8bbee22bc3fce6d07cfa533cb54a39ee
parent911f293bc2902b34865d79d0817022ae76613ca6
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