Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4132258imm; Sat, 21 Jul 2018 10:55:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdgwr3aPDe59ZF+30XuKjTyn1MruTG6x2WpyQiXlqJzfo+PD5xKLbE0o0AW6WVkLnr4Itzi X-Received: by 2002:a17:902:b612:: with SMTP id b18-v6mr6550344pls.131.1532195713149; Sat, 21 Jul 2018 10:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532195713; cv=none; d=google.com; s=arc-20160816; b=k+79ysUjP1y0j3PWqAMCJwMUcU6jYOm4Yb9n3PWujWkd57nyv83zRlSAIizdabvEVT m0nepmOO/mJFxqn3y4f+DWJUi8C8Qu+9F3CHF7x2+h87hilNSJwMKPlJFy3GpGh8CISO 7/KVE7616H0fce+DmMdqz0fpYQCMdbOYxf707rNUDzEL16fPbQ0VimXX9FK4e1T9Sgod 5FJf8SZhfeq+jeO79AL1x3sz9oUie3FLZVlWIlsrCR8fzyqLZAcbzBq3gOsL9Hr9ntc4 JF8RD67lEp72KqT3bpDL8IiFB9A+Qr2LCaU4x+55hUarTc1QVLf4JlhGZGlNjtlQXWqC +R2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=6LXQWpfgqIB8yBoMMP0T4PF/UQJ+ueZXsK5siAX2U+A=; b=KTs16CWeCaUZ9DJZPMisVmElm1t8FbDkc1lMF6Av7LdfSJ0r1zA45p8fkL0TIqQwBp QdFW7tdJ39f2K8MzzFbPCmmX/U0pghqFlFuFNM48mcdOuh0hwkXAViKexrQvbLRV3tHH QN3QLLfxKPmxDvC19K37+SwNnhWCKvYLStfNBUs01YvmyPfE7h2QLjHeV60s22ebO321 9wqLDwRTWFMCaZOUMXtdSucaONIt26F7WcrLVOVH9A/+aMuBVVBH26NKSb0HJdQyNZZV YgEc/d8ZvGh5XXeq86I2d/RDme97XO5LrT1CvyLRepoQZsdJjlNUTiF+J+R1ta8So+hS xvpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k188-v6si4574616pgc.321.2018.07.21.10.54.58; Sat, 21 Jul 2018 10:55:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728301AbeGUSre (ORCPT + 99 others); Sat, 21 Jul 2018 14:47:34 -0400 Received: from mail.bootlin.com ([62.4.15.54]:50368 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727554AbeGUSre (ORCPT ); Sat, 21 Jul 2018 14:47:34 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 204F6206F3; Sat, 21 Jul 2018 19:54:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (unknown [37.173.79.60]) by mail.bootlin.com (Postfix) with ESMTPSA id B41752093C; Sat, 21 Jul 2018 19:53:15 +0200 (CEST) Date: Sat, 21 Jul 2018 19:53:14 +0200 From: Boris Brezillon To: Miquel Raynal Cc: Wenyou Yang , Josh Wu , Tudor Ambarus , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Nicolas Ferre , Alexandre Belloni , Kamal Dasu , Masahiro Yamada , Han Xu , Harvey Hunt , Vladimir Zapolskiy , Sylvain Lemieux , Xiaolei Li , Matthias Brugger , Maxime Ripard , Chen-Yu Tsai , Marc Gonzalez , Mans Rullgard , Stefan Agner , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v4 23/35] mtd: rawnand: txx9ndfmc: rename nand controller internal structure Message-ID: <20180721195314.527b12b8@bbrezillon> In-Reply-To: <20180720151527.16038-24-miquel.raynal@bootlin.com> References: <20180720151527.16038-1-miquel.raynal@bootlin.com> <20180720151527.16038-24-miquel.raynal@bootlin.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Jul 2018 17:15:15 +0200 Miquel Raynal wrote: > As already done in the core, calling a struct nand_controller > 'hw_control' is misleading. Use the same name as in nand_base.c: > 'controller'. > > Signed-off-by: Miquel Raynal Reviewed-by: Boris Brezillon > --- > drivers/mtd/nand/raw/txx9ndfmc.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/mtd/nand/raw/txx9ndfmc.c b/drivers/mtd/nand/raw/txx9ndfmc.c > index 8f5bbbac4612..9019022774f7 100644 > --- a/drivers/mtd/nand/raw/txx9ndfmc.c > +++ b/drivers/mtd/nand/raw/txx9ndfmc.c > @@ -73,7 +73,7 @@ struct txx9ndfmc_drvdata { > void __iomem *base; > unsigned char hold; /* in gbusclock */ > unsigned char spw; /* in gbusclock */ > - struct nand_controller hw_control; > + struct nand_controller controller; > }; > > static struct platform_device *mtd_to_platdev(struct mtd_info *mtd) > @@ -303,7 +303,7 @@ static int __init txx9ndfmc_probe(struct platform_device *dev) > dev_info(&dev->dev, "CLK:%ldMHz HOLD:%d SPW:%d\n", > (gbusclk + 500000) / 1000000, hold, spw); > > - nand_controller_init(&drvdata->hw_control); > + nand_controller_init(&drvdata->controller); > > platform_set_drvdata(dev, drvdata); > txx9ndfmc_initialize(dev); > @@ -337,7 +337,7 @@ static int __init txx9ndfmc_probe(struct platform_device *dev) > chip->ecc.bytes = 3; > chip->ecc.strength = 1; > chip->chip_delay = 100; > - chip->controller = &drvdata->hw_control; > + chip->controller = &drvdata->controller; > > nand_set_controller_data(chip, txx9_priv); > txx9_priv->dev = dev;