Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754037AbcKULCB (ORCPT ); Mon, 21 Nov 2016 06:02:01 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:54472 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752452AbcKULCA (ORCPT ); Mon, 21 Nov 2016 06:02:00 -0500 Date: Mon, 21 Nov 2016 12:01:56 +0100 From: Boris Brezillon To: Marc Gonzalez Cc: Richard Weinberger , , David Woodhouse , Brian Norris , Marek Vasut , "Cyrille Pitchen" , , Subject: Re: [PATCH] mtd: nand: tango: Use nand_to_mtd() instead of directly accessing chip->mtd Message-ID: <20161121120156.51d5f710@bbrezillon> In-Reply-To: <5832C579.10101@sigmadesigns.com> References: <1479718984-26491-1-git-send-email-boris.brezillon@free-electrons.com> <5832C579.10101@sigmadesigns.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 646 Lines: 26 On Mon, 21 Nov 2016 10:59:21 +0100 Marc Gonzalez wrote: > 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 Applied. Thanks, Boris > > Regards. >