Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2992879imm; Fri, 20 Jul 2018 08:19:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcI8BNM0K72P20B6TbN7ZoLpsdWYvyYyQshZjkap2HESsB2XEOS6+siQbB+jnWmnSaO98zj X-Received: by 2002:a63:9741:: with SMTP id d1-v6mr2399046pgo.403.1532099972174; Fri, 20 Jul 2018 08:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532099972; cv=none; d=google.com; s=arc-20160816; b=s/flEB1a8T1w3h2fLII4E5uX/vvdsX/4+jEfYSTV4RYY2qpHdMT+wQFvfHnpXNTUQp LY6oK4B6sclQ56S0E+ihdzw1f9gYDpHplUOrJZT+DJPq3vs05+zWYf3baE5NR0qxeapv w3jdkmX/+mpFAsWCvfx63ZeaYXbrF5O9mX8ABhugoOBXCUXTMxSuTD0K3jMufNy7h436 dSDG5I7zsXp5Xag87Kw0FpVL0O2nqbZgRDRYQOhJ1hHOPphX/p2sgBtW8pCHYtyf4/MW 5Ff+lKnVwUrD286qBpGSITcV0jJLSUyjoP2kI5kglKLPhT9HFfwXJRAroHM49BzOPuJo 0FgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=3ZnLGYpRjmZa8E3ep6eUGud3suxaFJDPZZCjlZCEbxo=; b=HZCCwbFE6RAC2oQzLmIdyu9eNKsrr/zyIDq7NP9P8NzuE3xa3Owb/d0Qt509mUah6T UxVucwk+nYs37ap/UjG97paazmhIZ6g38upM5flnIFn4ewCOcVzM/oTjMZqCwaNFxryU M6gykl1nbinX55wbaXccPB4TIVswhCt9yAgk/NgBtrnqpNMi0zFnLubC/JtVjWBL5Cs8 jOzXcWEO7JPM+VxZmPYZmIo/rx9XWb0oXwAKuPUUzJj9L6pbSA8/yAfkAyScDMMRFpSo +K0mHgeJjf6wzD0h6RbngfVXSjBcJsorW48WYNLAGh5ILbdlMcMAL8gNRUor621AbQD4 EU6w== 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 w13-v6si1833886plp.51.2018.07.20.08.19.17; Fri, 20 Jul 2018 08:19:32 -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 S2388101AbeGTQGH (ORCPT + 99 others); Fri, 20 Jul 2018 12:06:07 -0400 Received: from mail.bootlin.com ([62.4.15.54]:54498 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388052AbeGTQEq (ORCPT ); Fri, 20 Jul 2018 12:04:46 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 87E81209AB; Fri, 20 Jul 2018 17:16: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 localhost.localdomain (AAubervilliers-681-1-78-122.w90-88.abo.wanadoo.fr [90.88.20.122]) by mail.bootlin.com (Postfix) with ESMTPSA id BE80D209A4; Fri, 20 Jul 2018 17:15:41 +0200 (CEST) From: Miquel Raynal To: Wenyou Yang , Josh Wu , Tudor Ambarus , Boris Brezillon , Miquel Raynal , 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 Cc: 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: [PATCH v4 23/35] mtd: rawnand: txx9ndfmc: rename nand controller internal structure Date: Fri, 20 Jul 2018 17:15:15 +0200 Message-Id: <20180720151527.16038-24-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180720151527.16038-1-miquel.raynal@bootlin.com> References: <20180720151527.16038-1-miquel.raynal@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; -- 2.14.1