Message ID | 20230704124742.9596-1-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1199573vqx; Tue, 4 Jul 2023 05:57:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlHp5xqJmyKVCAkE5hEgYJEnLvZPEHUSDgBhpKp+70j7ObKlVSv1hQqXpHz7BVzCCkGX7Ba7 X-Received: by 2002:a17:902:d2cd:b0:1b5:1b8:479d with SMTP id n13-20020a170902d2cd00b001b501b8479dmr17413849plc.48.1688475447359; Tue, 04 Jul 2023 05:57:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688475447; cv=pass; d=google.com; s=arc-20160816; b=ZJIbyWHyUKRkgPLJIybamPYbkj8RbwJw7AOIwOy30e5jV+DB6IJUIujqLvL6mg+SyM bk6aEEkkrwecjgg7vmsioBtbrN/gbttPEDG6rOYy3E3nPNIRF266V7yc8V3oif2YsyIk TYEpKnBYyssx2hXbm45RYqXPxzxqXd+FRm0ESBSsf7Utfm3xk6rlXIUy+VIq26UIR1A0 KEIr9fXP1j6sQtNpsJrdfNE3pGfWEPQ/pGjaRW/Art+6d3BW21tRvLtKVMlZSuwi/A04 oh85DpvWUzrVMsQTzJFF/kK4lT+ErTt59mRq36dozwkqlvOi7EPpEtoKDxzF3WUUkGln sbqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=qkleEjFxvlKJ1geHJ6emVpUGfYaJB6Ei+AHJ3cjNRCo=; fh=e4sSmt6EwDw6a3BfWpDvNtu8YvvpHqZdd5RPHpSXfK4=; b=hJVEb8iPJDL1nkvQWNH/++v9gnF9HOkczsvtZ5zsO7KBtY4bWS8aA1lSMkE2AdDQZq iTNWSxKgcP4wkSVoGaKD59blkpm1IkjfSh81l/CnKb2Az8PLvcCFiJx7qtERpE3693PK APAPidZAmQjzzMFDpczjZNJH+2aGC79k3QOCs2+olq1wcFl4Ue4ENyTzWSPgHgTS6Hxr SG+dR44BYIpBBrjCrJ8eE06CNybPsvEu0h3DDZRaB3hEPUHNbQJn3ZYfUVRWkSat++2O pYfjLwkR/6fHdgZ89aZ0pJz8LMtfGSTSShydRy7AR3DNydJzNlxGpOOVQrAXpDPCLq3u bwmA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=d8yhpTKA; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a170902e84200b001b89b7f68b2si4099325plg.42.2023.07.04.05.57.12; Tue, 04 Jul 2023 05:57:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=d8yhpTKA; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231147AbjGDMsD (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Tue, 4 Jul 2023 08:48:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbjGDMsB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 4 Jul 2023 08:48:01 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2101.outbound.protection.outlook.com [40.107.255.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53EB6B1; Tue, 4 Jul 2023 05:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LqqBORPtkn/bkFKqXW3DqCd+t2m+u71Te4ysm4ayYiOfZVVvz3UkrBEcdqQQYb1cB1D24Y2I44EO0j7od7YNY0c6IwIGx2xoRCjGjxkRJ2p2bwdIf3NZSqmg4ySwFe5SNpxuXv99eM42r/k304FFaxGuKcZE9BeXGnIH5qlGXLN7+3eHDMy/lleMTlfwGC7HrUyuA2U/Pspk1Td4s2ArtfZTYtVcUyqXcGkIcf6jwu9JZnH93XL8hbuo/5NKeIHtwyEZS38HQKNVvEcbsnIx7NwHzrItiwIdkMqFG11e7B7DYbE+vHMb6rTU8w6Nr7TUjzuW1c1qxxCqxnudDMAlGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qkleEjFxvlKJ1geHJ6emVpUGfYaJB6Ei+AHJ3cjNRCo=; b=ELQDn7Y0jjep20GJfTYqPenUFKiWIgnbeCLz73zkalSEeFSJIAjqgxFTzGm71Ag3hwK1vLb3o/jS2K1O+fbWzy3CEb+r+jMu/a6kbqo8YxtvYP0S2jaockQlhkqwnrofEZlMOFpy6K0egIsupJBQOXSkQUmEvWWaHOiqNw8qg/PebaJcZe4ZxP8HLNjE5Ksczah3wpioc2lSA9c01r31F1LNaQDAbbOPulyR4ihv71wxnFRiZYdW1hfgAltf0ykMB8fUC0aQ7boC1RP+TH96LGNcFq7gysiRQKQdwALvCDkNxP80ppIioUbb1b80fhmKGku/DZzscyGOo+WK9jki+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qkleEjFxvlKJ1geHJ6emVpUGfYaJB6Ei+AHJ3cjNRCo=; b=d8yhpTKAharxCbmOk2krfClek0eXdcszjtYkkPQeaPpfDSwuqwNY1MoBOe/pENiI5JnGLS0UJExJUBr/JQ8tK5GLsVAV6QVfUS5BpckDXcgWxbhs2F4yUmtVQtgxfJsVN9CKNEI/NpijLlzELC2wPoU4RA0mJQRIDAIiySFqgu0pAA/uEl39gx5aMlpD/uQczqbIGGH83wa8a9Ri2OpdCng1R3WnVWbCRDqG+KONZX4wmb755dq1E6B7xrTSs677SJvDDIpB0DU3xAPfFHcrT+JOJuJDpq99lqfWZh0/f+FjHJpXUJghrs9fWcjxoGYaQogXbZF/hAiEaplhUH4KrQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by KL1PR0601MB5679.apcprd06.prod.outlook.com (2603:1096:820:9f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 12:47:54 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6544.024; Tue, 4 Jul 2023 12:47:53 +0000 From: Yangtao Li <frank.li@vivo.com> To: Linus Walleij <linus.walleij@linaro.org> Cc: Yangtao Li <frank.li@vivo.com>, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] pinctrl: berlin: as370: Use devm_platform_get_and_ioremap_resource() Date: Tue, 4 Jul 2023 20:47:39 +0800 Message-Id: <20230704124742.9596-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0034.apcprd02.prod.outlook.com (2603:1096:4:1f6::10) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB5679:EE_ X-MS-Office365-Filtering-Correlation-Id: adf15599-e367-436a-b33d-08db7c8ce1d2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Qq79U3j58DtOwkjAC5Wg2AN3/dLD+zJjn/mvsGcJHiXvKHBqbhcqddIEla3sj1YS0TQt0H+RCJCoXkqOAw6+s1K8nKx/KN8T1EA00r1H2rH80P41V0RUDQ2/KLEcAbw5lu06lpQxh5+0WE8DwrNfXcdGMTJGektCsiFMXO0vqdM8aqep7hjp+nOsr/4ge3sSK/2UtR3IK9bmOAxGLYmyL3ZPeB5ZAlFKyjONYSWu7g8zpUeskIWUhnURCNy6i4G8npASsMUMJHVNYjzI+SgiTMhOBFKkyXh57TEqeuvLmcWRszX7rZdXCZ8/21SnnuDfuQHZuT7qJ/IH24A1Kv7unPWrMQcPmPvWeexumKK7M3Ag80UHvHVOm7bvn3x2eIVe6tJl41/I6r0TVD0HB2A6/MmncJIz/npbrm/bsWpR0clyYZLGY2DR+a2ZbLnFlc34r00840ADyNcXx6XINimUJ1HNgWvBHGSQw9A2UqZcShsUcQhvsaqY/ECPBGodEMiTUid3vp9HBsI2pV/pJmVeOmWpEK+dxGOHRSQJUbUGZix5LW7C2Vl5mHP01ZbAD4Pdb2xVar3J2sQ1dGqWwdpl0th9EK9HqUNY+12cnhAa7Ufot62Guem2GqTOj97KJ8o9 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(366004)(376002)(346002)(396003)(39860400002)(451199021)(1076003)(6506007)(66556008)(66476007)(6916009)(4326008)(66946007)(38100700002)(478600001)(41300700001)(38350700002)(316002)(2616005)(83380400001)(186003)(26005)(6512007)(52116002)(2906002)(8936002)(5660300002)(4744005)(6486002)(86362001)(36756003)(6666004)(8676002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1+aGWESsTJ0H0FoZBjSnv6BSwm8qEaaHxf3xkDeO7fXAbFAK3BH6LPglW+jLKN0adwM/JfI9znvivZg22Rjk9VcqQ1elG4apYsZzHQrv65GaHDdwoED4ls3ScvioWGwxpkLP0RoQ5sUWKnzCVJRTi9BtbJ+Lu6wal1uiYrbxOejYU8bbY7Iko4Iv3d0tinLV5j86j/JJFI8+0xZrR7SfXX280S1P54pQJS7sKesBPBVF/B4BSfHhkyP6Uc12q/5l7S8IFz0Lca941KwXRxIV7HZ759qCIjzXuIcjynv7lO+BEgdEDebOuRkFqlMtyPLUI2KR8Bmau5JE+HwuUx1v89yvGjDbZ4jAm95k0c04vT+XH7REZAYjBvLahlOaGBbIEghTMjxksFlzMizdNy8SljF0pQgLDi1+U0iMLyzIZAyRGxOvcnCdts5N3pmRa76I07bW/LvOLqXJolXcOy6Ha/3vuIfcGJohwT57DD7qXBkTlh37b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5AiDuf4//NOAV+Z2FFg X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: adf15599-e367-436a-b33d-08db7c8ce1d2 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 12:47:53.1336 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: TYGsL17YdfN265vucSfNGSKeOc5ooiS/fNHui4JOE6OChBhS1Ubkqvh+cieAT56w4oJoiRHv4ceVtffaiOHwvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB5679 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770494830865259806?= X-GMAIL-MSGID: =?utf-8?q?1770494830865259806?= |
Series |
[1/4] pinctrl: berlin: as370: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
李扬韬
July 4, 2023, 12:47 p.m. UTC
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/pinctrl/berlin/pinctrl-as370.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
Hi Yangtao, On Tue, Jul 4, 2023 at 2:48 PM Yangtao Li <frank.li@vivo.com> wrote: > Convert platform_get_resource(), devm_ioremap_resource() to a single > call to devm_platform_get_and_ioremap_resource(), as this is exactly > what this function does. > > Signed-off-by: Yangtao Li <frank.li@vivo.com> All 4 patches applied, nice cleanups! Yours, Linus Walleij
diff --git a/drivers/pinctrl/berlin/pinctrl-as370.c b/drivers/pinctrl/berlin/pinctrl-as370.c index 9dfdc275ee33..b631c14813a7 100644 --- a/drivers/pinctrl/berlin/pinctrl-as370.c +++ b/drivers/pinctrl/berlin/pinctrl-as370.c @@ -341,8 +341,7 @@ static int as370_pinctrl_probe(struct platform_device *pdev) if (!rmconfig) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(base)) return PTR_ERR(base);