From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [PATCH] mtd: nand: tango: Use nand_to_mtd() instead of directly accessing chip->mtd To: Boris Brezillon , Richard Weinberger , CC: David Woodhouse , Brian Norris , Marek Vasut , "Cyrille Pitchen" , , References: <1479718984-26491-1-git-send-email-boris.brezillon@free-electrons.com> From: Marc Gonzalez Message-ID: <5832C579.10101@sigmadesigns.com> Date: Mon, 21 Nov 2016 10:59:21 +0100 MIME-Version: 1.0 In-Reply-To: <1479718984-26491-1-git-send-email-boris.brezillon@free-electrons.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 21/11/2016 10:03, Boris Brezillon wrote: > The nand_to_mtd() helper is here to hide internal mtd_info <-> nand_chip > association and ease future refactors. > > Make use of this helper instead of directly accessing chip->mtd. > > Signed-off-by: Boris Brezillon > --- > drivers/mtd/nand/tango_nand.c | 25 ++++++++++++++++--------- > 1 file changed, 16 insertions(+), 9 deletions(-) Acked-by: Marc Gonzalez Regards.