Received: by 10.192.165.148 with SMTP id m20csp385033imm; Fri, 20 Apr 2018 00:26:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+xAr7/4pPn+kYoKLt0iS/LGOCJUc/rG8do5UB3LqohIVJEhPv/ldZU9OHIaV1oq/7bnLP2 X-Received: by 10.99.166.10 with SMTP id t10mr7776023pge.357.1524209177664; Fri, 20 Apr 2018 00:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524209177; cv=none; d=google.com; s=arc-20160816; b=hUfluyka9v0S4sY56TUi9BmVZ62d69qsUx2/cQfwetqW3dDpyoJDbeYyTVTdy0DWhQ nVVPAzCsSXNpg4kFjo2hL0NxG6zxL3aXV+ueVGAkT3lqHuveIPm/zHw1rqyndPJeGeCF +lRPOSQDheozZKGsnSVB8JPmAvlbov1HX48ZTIbkxgfWwuVcepC8d1E1qBd0uFvUJHBo A6BwxV3dSSvRo//kd1g+H4lM2va55Sf+N7IL4AzMcd9IVBRMbJWQKVgzx5XmnokPZXl/ jtvpnL4950v9N8nyb+uNUCAlgZR1GxVLUAqw5g8sB8TieykPkgaIsD1RJyDyCnGqYM/G kcAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=ieAXTrhDcYivsn01+Ix8TAebJsHGXTOM3y+0V6ulUA4=; b=EWmae1NaBHsHZ0IcJcTnjxJFuJjOXyRNWD2zwML0nGwNs2rFxMjGx2sQbsIHZAsmlP gGsWfXuQfHwgrVikLvasiQBaRCI8b5xtHUkMPmJu6sF+Dfy0EYICyyTx4fK9QVsOTwvY HBI2eXHDm+eAvSHsKyyD3/uoe1eERBCLA+OXRhT096UhWZuf3bZHZIsi0a+Cz+s5qZhW q+9bj0q7XuhWH27gnikgrj836Llv6K+GOxKsB65Yc/Pc4GuNeTrUAg517TsA0lMsWDsI PbCTgZRr2MNOa9B3q/OkW3sXLqS4biGJkGhqXLxXZOPKB2tOOc8W86TH1B/UJQeycm3s wwcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=aBQQOUpu; 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 c11si4653761pgn.37.2018.04.20.00.26.03; Fri, 20 Apr 2018 00:26:17 -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; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=aBQQOUpu; 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 S1754124AbeDTHYc (ORCPT + 99 others); Fri, 20 Apr 2018 03:24:32 -0400 Received: from mail-by2nam03on0066.outbound.protection.outlook.com ([104.47.42.66]:39341 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753541AbeDTHY1 (ORCPT ); Fri, 20 Apr 2018 03:24:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ieAXTrhDcYivsn01+Ix8TAebJsHGXTOM3y+0V6ulUA4=; b=aBQQOUpuwT7sU/lVWxAxrGr6Zi8rB6cPuygONq/9+c4Mcw5c9TXM+ALAxSl0OiacYJzy33ZqxFllBnP1E+yV8gfEL+K25hBRZBVbwtlSi+KPlvVw17swH0/xSADqahHi+bBdM63sVPjBFFdAExr2nQmak/iiMN25cVzawPeGJFg= Received: from MWHPR02CA0004.namprd02.prod.outlook.com (2603:10b6:300:4b::14) by CY1PR02MB1229.namprd02.prod.outlook.com (2a01:111:e400:5286::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Fri, 20 Apr 2018 07:24:25 +0000 Received: from CY1NAM02FT019.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::205) by MWHPR02CA0004.outlook.office365.com (2603:10b6:300:4b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.696.13 via Frontend Transport; Fri, 20 Apr 2018 07:24:24 +0000 Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by CY1NAM02FT019.mail.protection.outlook.com (10.152.75.177) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.696.11 via Frontend Transport; Fri, 20 Apr 2018 07:24:24 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:53969 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1f9QP9-0002g2-Ie; Fri, 20 Apr 2018 00:24:23 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1f9QP4-0005DP-FI; Fri, 20 Apr 2018 00:24:18 -0700 Received: from xsj-pvapsmtp01 (xsj-mail.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w3K7O7PX006231; Fri, 20 Apr 2018 00:24:07 -0700 Received: from [172.30.17.111] by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1f9QOt-0005Bn-FE; Fri, 20 Apr 2018 00:24:07 -0700 Subject: Re: [PATCH 46/61] spi: simplify getting .drvdata To: Wolfram Sang , CC: , , Mark Brown , Michal Simek , , References: <20180419140641.27926-1-wsa+renesas@sang-engineering.com> <20180419140641.27926-47-wsa+renesas@sang-engineering.com> From: Michal Simek Message-ID: <80e6c822-094e-fded-d8bd-28f4cb7d14ad@xilinx.com> Date: Fri, 20 Apr 2018 09:24:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180419140641.27926-47-wsa+renesas@sang-engineering.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(396003)(39380400002)(39860400002)(346002)(2980300002)(438002)(199004)(189003)(9170700003)(446003)(476003)(11346002)(316002)(186003)(106466001)(81166006)(486006)(426003)(44832011)(58126008)(2906002)(4326008)(8936002)(5660300001)(64126003)(26005)(356003)(106002)(47776003)(336012)(65806001)(77096007)(65956001)(8676002)(65826007)(50466002)(86362001)(2486003)(31696002)(23676004)(229853002)(31686004)(9786002)(76176011)(2616005)(36756003)(53546011)(478600001)(6246003)(59450400001)(6666003)(54906003)(230700001)(110136005)(6346003)(36386004)(63266004)(305945005)(126002)(142923001)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR02MB1229;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;LANG:en;MLV:ovrnspm;A:1;MX:1;PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com; X-Microsoft-Exchange-Diagnostics: 1;CY1NAM02FT019;1:y+5hudUqq5+zskSc9ishorcERdAIrwuHSBttTh4SO/h35DdBvZjjIPTDdw0rnX11bjpoiNbGrtOrERfL+wpo963ONv3iDW7LwR3ZJTrMqnuF4zOIVG/MnsP/qsbjoWtE X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4608076)(2017052603328)(7153060);SRVR:CY1PR02MB1229; X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB1229;3:elM/fIpnH8PQqoT0HGKhkrn7vnpzlgMcN9UPWq+YRcaZ41AoZTT/Vm1NiHDB3CvDg8egl6iPEDQ45/VzSPkboUcMAmS17SURmQPwbz5CzaWM4BstgzKZ5+nDCKd5SDskorVaFiGXZ+QpShoOGfKfaFzG9Z85ccajA09ZkfNjCYUx/IwwV+mViFGZOMp8789rDwoPuawAyhvIf3az8g04t8fMUzrrTIOUaqetR2fMnzJE8dGX8pNlQXuXSyphjLEuAzsBemyZRgPKuwP9ZFP1yd18Kw6Mgq1oR3ugOq0oR+4r5KwlIyNoLurSiQnnK2i6JkrkIP4hY0bB6HKpgtnnXjHTSNRBLUu/G4mRBiyFTPY=;25:o3/CaGD4sE/mcbt+jkGJlMyPQdxfTzUYNltXy+3xo4nOqK5eO6ThTRtzX1rI0VuoRDvUcOYoN8AyQamN73kT+ypKTrX/giofH+vfPNutRhOcjV4Aiy2JrTBNU4YSJ6/KCOXPX8aGrNhZ7WohJdHfbVljONl4oynW3FrfveA6UE4G/bXMVm2wNI+ysRoezQcaHN64Ejp8IBo9wi1onfWNsxn9M6yqS+PmTNaUt6UvllMW4Hq+cnbn4XZ2sCODDC+yztwb0rttoS1RPmDGSPtFxCXRkBEDOppPMLtHHsV1Eo206HtKdYVwjTa+gKr4fG9mdu46Bj2pVCaMBAf6Yy0CPQ== X-MS-TrafficTypeDiagnostic: CY1PR02MB1229: X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB1229;31:jKLycYi722uijhx050wnJ6x7zYMLD9DtuPUUaAuYMbeSXNPXOlzWT2WJLRuMtKh3q0KSPLrzspIyA33P/1n6bp86kAwkasgjVCrDtWXA4OQN98iCjaZRq+Fkpg5XvAofPUbwe65oUMHpLBKVFLsLew9RHQs99ZhCUCgzgNeX3VeCPN87JZ2XgQVsenU+QsSckolWv2HN2DoIkMHr+Fn9iDbMLucuuOz3XjlpAxTTDEY=;20:pGUZO62wp6zWsLPRfe6Wd4o709YrQTaCf+k+1pkRjRGc9zwdN85EIg+laK0+cOOEaV8YTXW42NUQdM0ULL7y0jOeSH0/WyAKH4P763/l3YX91Jsp2yqPLxuMXtUMvwMmZVSkw2sjWkTukZGhFBjgaZwd6K1ULIHxFfM559pMefhIejS02DXTJgoGBCHdBv0mSaIAfSjMpeOtcBy/oEC9PRl/BHn0wE8f0u4rySiUKvz6+/Tgt9K5iqiYZIza1fvgMfc81S5A7/X1sZ1fl4UL36oqKpAcJGeJk1OEBGn2tYBaN9m+K0BhR4OnWWYkfjUYISyo3C23ub1154jFWcqwfn1jniMLmg8op2b8Un+QdyePobHLjZf/CvfqSrh4wQuJ4poPn56riy+fQXaOnDtpyd9GlBiGZe3kvOXRAhjhSx9ZSIziz6tuB01OgdKDI/uUVmKvqZbLeAy/A+mIE4nmwMvO4CUqO9tPRHAiDdZSimiCVALEsgsLNekFjHw6HTwv X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93004095)(3231232)(944501391)(52105095)(10201501046)(6055026)(6041310)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(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XcU7gPX5f+sRpAXQWQ9rfuwTblxy/hMIKqPs9lkrE0zkR+naAPQxTeYAGCpktBcJgA1uV0DtkZtn5Y0qBp5vp/nGH29dQFa1ZqLvOBPVYz/0JcO7YbPPvl6uNOSXV3xo8hosbpx111GZhTlgjdWIswODK7mZ/i70g2wesIAsnISe4IiTtGvg2CnpQT2285sVJUsASaYx2e42tton4543DuBR9G9oGDpRdIO4GIOSAz99G3uInbZ29rQ==;5:+DUCufDS2Ycr31Gr+5+Jjq3IFwnQm7UGqYNQe3FoMM81IzljqGHvdFWwZFLnK9DlWZrMJ/7iR8gKJVvDb2gwmJaQviuIaN6gF+5osCs5AyxOuHiabUSQ3uTj9SfOBfDkq6rxDFQ0v0qqmfqr4GL+/+Ze5Lfzsi8sE4yuAdlLhAs=;24:uuLLeWyX5lhSS8sKp26/WZBHGjHnOoh9kweHGGLKspg/M3ZPZdsii13bR3Avsi7G+MtNjvTGZQEEsJcLxuyps7onVpd9tRFqmeRmr3Y1huY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB1229;7:9dHXo57N2vTsQdeuJkurAqE9OWirUfwFrAvVWgFwTtoY2fKA7IcyPZ74MZfK13+7bm7z/KbYn8OZa6d66GNUdJ6IWSn8vaVVLNHQF4E1Cz/pvR6M6ZrUO7/bFOgbeb2XBpQIgNZY6iTecu6jOSn2Uxr8wVRCh46uAkqPbPA/DaIkxyzWOUKhzfvKvrMVfCLCQu11aWTp6b2zSr+sDY2DniCbhmX1ws2tloXcTJo81oM/v2uptDgDTzL2uFISDmpd X-MS-Office365-Filtering-Correlation-Id: 76a58da5-c348-4ecd-7e6a-08d5a68fbe44 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2018 07:24:24.0799 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 76a58da5-c348-4ecd-7e6a-08d5a68fbe44 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR02MB1229 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19.4.2018 16:06, Wolfram Sang wrote: > We should get drvdata from struct device directly. Going via > platform_device is an unneeded step back and forth. > > Signed-off-by: Wolfram Sang > --- > > Build tested only. buildbot is happy. Please apply individually. > > drivers/spi/spi-cadence.c | 6 ++---- > drivers/spi/spi-zynqmp-gqspi.c | 6 ++---- > 2 files changed, 4 insertions(+), 8 deletions(-) > > diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c > index 5c9516ae4942..de394422b611 100644 > --- a/drivers/spi/spi-cadence.c > +++ b/drivers/spi/spi-cadence.c > @@ -686,8 +686,7 @@ static int cdns_spi_remove(struct platform_device *pdev) > */ > static int __maybe_unused cdns_spi_suspend(struct device *dev) > { > - struct platform_device *pdev = to_platform_device(dev); > - struct spi_master *master = platform_get_drvdata(pdev); > + struct spi_master *master = dev_get_drvdata(dev); > > return spi_master_suspend(master); > } > @@ -702,8 +701,7 @@ static int __maybe_unused cdns_spi_suspend(struct device *dev) > */ > static int __maybe_unused cdns_spi_resume(struct device *dev) > { > - struct platform_device *pdev = to_platform_device(dev); > - struct spi_master *master = platform_get_drvdata(pdev); > + struct spi_master *master = dev_get_drvdata(dev); > struct cdns_spi *xspi = spi_master_get_devdata(master); > > cdns_spi_init_hw(xspi); > diff --git a/drivers/spi/spi-zynqmp-gqspi.c b/drivers/spi/spi-zynqmp-gqspi.c > index 18aeaceee286..3608db4ff368 100644 > --- a/drivers/spi/spi-zynqmp-gqspi.c > +++ b/drivers/spi/spi-zynqmp-gqspi.c > @@ -918,8 +918,7 @@ static int zynqmp_qspi_start_transfer(struct spi_master *master, > */ > static int __maybe_unused zynqmp_qspi_suspend(struct device *dev) > { > - struct platform_device *pdev = to_platform_device(dev); > - struct spi_master *master = platform_get_drvdata(pdev); > + struct spi_master *master = dev_get_drvdata(dev); > > spi_master_suspend(master); > > @@ -939,8 +938,7 @@ static int __maybe_unused zynqmp_qspi_suspend(struct device *dev) > */ > static int __maybe_unused zynqmp_qspi_resume(struct device *dev) > { > - struct platform_device *pdev = to_platform_device(dev); > - struct spi_master *master = platform_get_drvdata(pdev); > + struct spi_master *master = dev_get_drvdata(dev); > struct zynqmp_qspi *xqspi = spi_master_get_devdata(master); > int ret = 0; > > Acked-by: Michal Simek Thanks, Michal