Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753817AbcKUKGX (ORCPT ); Mon, 21 Nov 2016 05:06:23 -0500 Received: from mail1.bemta8.messagelabs.com ([216.82.243.198]:36569 "EHLO mail1.bemta8.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753240AbcKUKGW (ORCPT ); Mon, 21 Nov 2016 05:06:22 -0500 X-Greylist: delayed 414 seconds by postgrey-1.27 at vger.kernel.org; Mon, 21 Nov 2016 05:06:21 EST X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBIsWRWlGSWpSXmKPExsVy+LrFKt2ao0Y RBos7GC0OvFjIYnHkwlpmi3vfzzNbTFw5mdli0+NrrBaXd81hs9jdtIzd4uiee8wWk3e+YXTg 9FjwayuLx5NNFxk9ds66y+6xeYWWx+Yl9R435xV6fN4kF8AexZqZl5RfkcCaMfvxBKaC98wV0 1euYWpgXMncxcjFISSwjFHiVfs9IIeTQ1ggUeJ66yowW0SgXuLutFMsIEXMAl8YJVZ3tTGBJI QEgiRmLN7PCmKzCZhI3Lx/jgXE5hXQlbh5cDYjiM0ioCqx+ehPNhBbVCBB4tPTn1A1ghInZz4 BszkFgiVmHFoNVsMsoCcx5WoLI4QtL7H97RxmiF3aEu83LgbbJSGgIDF1civzBEb+WUhGzULS PgtJ+wJG5lWM6sWpRWWpRbrGeklFmekZJbmJmTm6hgYWermpxcWJ6ak5iUnFesn5uZsYgbHAA AQ7GPf/czrEKMnBpCTKe3ipUYQQX1J+SmVGYnFGfFFpTmrxIUYZDg4lCd7mI0A5waLU9NSKtM wcYFTCpCU4eJREeDceBkrzFhck5hZnpkOkTjHqcrzb/O4BkxBLXn5eqpQ4bxnIDAGQoozSPLg RsARxiVFWSpiXEegoIZ6C1KLczBJU+VeM4hyMSsK8k0Gm8GTmlcBtegV0BBPQEUqsBiBHlCQi pKQaGFX2bb4QdkH/qMeP4IPep1ZWnbcpehC9ekG0aXZh6rTZ6nucltz8IWiqeVL98LEp/zac2 Jx+4uv6OZs3rTt6jKdO5Mi+Vv50kdT65AvRamFHPkg8LE9p2Vft9tlM3ffqwx0nXkeZy0x4Oz n7/v1It6Omj6o2hR56d/N6uFDD+b8PWJaKzP5VWGSuxFKckWioxVxUnAgA/9JD5AsDAAA= X-Env-Sender: Marc_Gonzalez@sigmadesigns.com X-Msg-Ref: server-12.tower-94.messagelabs.com!1479722362!117177039!1 X-Originating-IP: [195.215.56.170] X-StarScan-Received: X-StarScan-Version: 9.0.16; banners=-,-,- X-VirusChecked: Checked 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 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 X-Originating-IP: [172.27.0.114] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 494 Lines: 15 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.