From patchwork Thu Jul 6 11:39:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116645 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2502918vqx; Thu, 6 Jul 2023 04:58:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlEyQ1cl8XPlUoGZjqGTULo8hEZQJMi09od1ivbgRRGpmEfEbhMwmHAik5PplKoyzlczmcFR X-Received: by 2002:a05:6808:2784:b0:3a2:1b3b:494b with SMTP id es4-20020a056808278400b003a21b3b494bmr1265639oib.45.1688644737473; Thu, 06 Jul 2023 04:58:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688644737; cv=pass; d=google.com; s=arc-20160816; b=GpyMHUmmbB8qerpyz5WuEQbSaCBs6J9ROE9mVnWb/iIgzlZioQniGeTxL61/fpncRC XsdQ1IQhowElJzQMsdx9+n96icZ3H06v3Y+jV479v4FxJFXiZROvZ0YgtmU41tbLXyp9 MtVR69rsYUzJnZTKD24eN6QEoOsVHIfT3rPRqASN9+1utdiKtBEaYfvkUAjq7JFAA8mO pLAiQN+bcttitEpu1iEHmUwWjkL0yTh97vLtzc2fcHmuxooTuOmhSF4PATPMLXHJ4Cn1 zoNOfLVybrEvc8wXTgbp45UGccyxlJCAnaeHLkvakxPwXE4DDVe0KkHNfMUQ0V6sOIEP 0Cyg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=roBYzc1yLKmrJuQyZPI3AB3Ts7ecD4YcbeZzN+6dOLU=; fh=aSD6UxuDyA/Hq55xDxAH1r0SYhPB+aZLcPQnbuvkfgE=; b=meIwcffBayIF1Xvc9SsHqqXRCSaPO0t96uahPnoJ+K+CF93HyTa9esk8a9YpF0gPR9 b6YA2YH7YJApk2l97M7l7JZicBAgCStVyYJMzGjEp0/acfNx7D8Kz4VFIf3/3GbgTIxW 2LcEgseMkWuaKznAoIDFanPECgz56KzcslqT22v0lyh8rcfxa8rjfnxJxYL0gUvbEN9o 9ZLHbGUOnthPenymdLBl+ttn3Gz09pPurCZQxPB5C+H6Lh5YGYt4t7CHA/7PtSr1CAWr iOUDjvbNFyFCbXqVIeY41EyM3WidE3qd2MjK2JwwQ8myuFxrIX0wDdGdHHXe2tnWU4pA zVFg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="p4Ofk/kT"; 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 pi6-20020a17090b1e4600b00262d692db39si4066408pjb.12.2023.07.06.04.58.44; Thu, 06 Jul 2023 04:58:57 -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="p4Ofk/kT"; 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 S232117AbjGFLkA (ORCPT + 99 others); Thu, 6 Jul 2023 07:40:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230504AbjGFLj7 (ORCPT ); Thu, 6 Jul 2023 07:39:59 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20715.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::715]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D3DCDB for ; Thu, 6 Jul 2023 04:39:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LxvznxlOP63xaOzyGxK18qfPvccTZIQL7D8HpLp5LSW/bobjvMLbFN/JI7t6nsXWqTP/P0Eq5msg3YjJK/VbfRF3C4wtr6x4tAHrDwjaqWPZKkO2CzBGoRCaf2WZq0d8XyY7oj+oLeZuLX0oLzMPmhQMLVernNI0iKSpXS9YUPUf4X1iafTTVHaWLRm8KnxV91boiLljrNAt7PtS9V/LZEXA3NkvQvNsiGjUzsbQGdF3qrIn9Z2LAJBwrpd2MXV6cKgr9rbUdbKdmR/RBZiJBjfyMgdIUKyAZhwcDBTS2YL15lVcNiLkH4cuzJDuc081kB3xEHKzgWyjM8RXxgxolw== 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=roBYzc1yLKmrJuQyZPI3AB3Ts7ecD4YcbeZzN+6dOLU=; b=Z8BTASVWIk0F9wbD9qVZlOzI2nw6O9Xo7e4GqdBYgvlffaoK4prFzPs5FpX8F3qdRcRmMuHEmaWiDrsg2764WpLZ8jnJdARW5Nke5AvC3ujoMQ1c1sQGR39kqTs2zMMzUhTMinFNruEyi+BoE4ZkjjUg9MOtUxe0XJAojvb3KkFKQiqV2k/FZWgwxSdraeTU6vPA6opxwJiw97j2o+vGIYxUHOJUrIKgoiy7UtRnBm7mABJbFVO4hfYkqjaYW/JSUmPX4Z0fKGIyX2poOGdNc6vfmS/nkNCoq97Z8JWuRQcYz3pXhmoe1gYT2l9+QKoTDsuChXM7mZjrY096+tr7Lw== 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=roBYzc1yLKmrJuQyZPI3AB3Ts7ecD4YcbeZzN+6dOLU=; b=p4Ofk/kTnpPTSNLnL6kWi1N+vvMj9ZRm1sf4Xhq+eG8qWND/Tohz8VwzWGSVU1bDXqcWhUTEfWSnkSWgSAPAsO8hCfNHmacSYQTsfYEkd8MKEaTSUb5pzR+3NPecsw3jSZzvr+AVwA1gw+a3x7K7a14xkXSCX1GwIv0xZ3BSPQHBkNqL4dSLOvdepXBmcFmAKRVquEr7BNCc68YhtkdQrZQezpjHGOXuiTieZxuSew2Gak9eXflp8+PBbDUfJuo5a8kZJC+xlZu8fbFLIKYafbCEX60+tZ8tN/Mk3TvyHagdCe+xzQCOcwZjqDKR+U+fommcQTZ8+SgFL64a2TRZbg== 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 SEYPR06MB5889.apcprd06.prod.outlook.com (2603:1096:101:d2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 11:39:53 +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.6565.016; Thu, 6 Jul 2023 11:39:52 +0000 From: Yangtao Li To: Lee Jones Cc: Yangtao Li , linux-kernel@vger.kernel.org Subject: [PATCH 3/7] mfd: ti_am335x_tscadc: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 19:39:35 +0800 Message-Id: <20230706113939.1178-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706113939.1178-1-frank.li@vivo.com> References: <20230706113939.1178-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR02CA0013.apcprd02.prod.outlook.com (2603:1096:3:17::25) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB5889:EE_ X-MS-Office365-Filtering-Correlation-Id: 90b57402-aec1-4502-23b9-08db7e15b6ac X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nGKBQzHlr3vwlXbmkIvWr12l8jxRO1F1GCPQ08ucE81eQpMBbXRU12LRs756EJyOfwYhqL6fbGUlgI0DHvI2vWsIykhynecyMJt0pboJEw31EL7WoMiefwPEsCfO++Rofsg7X2M+G7wISVC56nxh0YINm1pAeUiCNi7yCQzeO/2gJix9IvLfVioepjBxTVWiyQN9Cib5Vgx6+kl0ZLg3IF7HBc2QFjdHYn6zlTdSozdHK5g3gsDKTRwHoixTRLMwa5dTQ3oKTXAU15BI8QjEUoslJSAd/xxxzQGsu4dSZ/ZgQY0LOxfj4+5gktEWT98Wl67czxWxdmQGCElWzLc6gV26SRL9taqDhfVMPFvYIYqzY0tkgqcG4ZVS58KFeMPU7KcXGx5VAGGvRaGMOannoISxAWazpfiCjATxHhdf/gRMBBDblRYeqrzCCjaFMFyEUqsWsmrZqYQ9sPa04x3Uv7IqyZgvGtlwCEAcKrmHke3hUoMzAXeY6a7SYZxyUvWr754NTX4nKDWDwR1WGgvCdirH39DuzvQh1K928YhBcyGdf0jOtAV26k14jlfdEcQm53EUWOQAy+FlgxXzCeZRJqOpFFSFIoqNsgLDLRtnk58MGdolzGgf20FVyJZhDKjH 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)(346002)(376002)(396003)(366004)(39860400002)(451199021)(36756003)(86362001)(2616005)(4744005)(6512007)(6666004)(52116002)(478600001)(2906002)(38100700002)(38350700002)(26005)(186003)(1076003)(6506007)(41300700001)(8676002)(5660300002)(6486002)(66556008)(66476007)(66946007)(6916009)(8936002)(4326008)(83380400001)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eeedIOwJyhPn+hUxJtTVgVwYOMlhT023qOLpRz30Dx7gMGSUdZtj7xIGSfHz8/CQaBBjyqCPDolSQIe8zRX4psGXR1TEop6hCPNFEfS09GhzbI3nLoKKRYIKKF7RbLsjfkbM8qltdTFrSJtjsT9lZTy5x5EAu6EC8h8D8pMipA7M3pQ76MwqhcI6IbP3nAnQGJLIx3t2oqd6JL5WK1h+3EBRuRN2FN8KaOHfzUuUAG8lZVSP36RV122IhXWtQ6sCSIu7GQBihLI/OMWXUElWPhU4rUNmmGfNRfpDc9kWuet8yS2uDCwfdgkG/k/VYY3UzmZ6u6/4fcpdchf3bCyNFaClJ+Ri4hHRJMNkwuFbTAuwwAdfcNSlarOS6TNFqVV8cyvbonaHwmAw3DcY4NY2h0SPM3TKYIZ2LZsS/Nu2ybKG5kvEfZPLGrufmXWYx8KKvBJwahCGTs6/KGb5Xh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sALYNBruGYZWf5KPs5l33dpwPmEHZ8SuRnYYxiE4UtYM X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90b57402-aec1-4502-23b9-08db7e15b6ac X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 11:39:52.9176 (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: jQVIYLlC4GHCyMFqrQriJtjOV21DA4Y+7a0cdqhkjcpcDpEasADQTDY/kOQOaHu7/t7E+ou6L5lB5L5qQI0xeg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5889 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770672343936174196?= X-GMAIL-MSGID: =?utf-8?q?1770672343936174196?= 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 --- drivers/mfd/ti_am335x_tscadc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/ti_am335x_tscadc.c b/drivers/mfd/ti_am335x_tscadc.c index 07825cfd8aa8..570bc2d33e2b 100644 --- a/drivers/mfd/ti_am335x_tscadc.c +++ b/drivers/mfd/ti_am335x_tscadc.c @@ -201,8 +201,7 @@ static int ti_tscadc_probe(struct platform_device *pdev) else tscadc->irq = err; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - tscadc->tscadc_base = devm_ioremap_resource(&pdev->dev, res); + tscadc->tscadc_base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(tscadc->tscadc_base)) return PTR_ERR(tscadc->tscadc_base);