Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp116705pxb; Wed, 1 Sep 2021 23:40:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDtb5KrIz7/Z5nDqzCr36NmTZH2LgQYO4YPLYO70sYa6FtWj0cbiVGLdgPnpnmcClXZKfl X-Received: by 2002:a17:907:2677:: with SMTP id ci23mr1990218ejc.429.1630564838435; Wed, 01 Sep 2021 23:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630564838; cv=none; d=google.com; s=arc-20160816; b=X4qlkPhkWims1rolFWb75jJTPPUXFcC67HkwKdHHgL7jFOHUzasxoi5fIabLtaK8Z0 7WHLCG+LM+l0Lw4m9E3dM0FeHzCVG7z7beVlsuXPtBCd5FTudl8L89BN0HwIdF0vOejv ZO9HYGVX+hTlzLqu/HMkU/x0bWBrLhjsEU5ccY9N9+Apjh7P/EdhgMw3ckNPN77sThAm KITI8ZpGFuyWmU9XBKjufgsxhqPDlssXukkGYtTF1Ze/jtclDdYj2FnAHb9vLwF2QdK/ l0nN6R+P6CCwhbPYxlS09j5PjCIiAStVOwT1HxLuGb96W24QGbHMcP78XnU+iSshDJBs oKCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=+U8Lb+T/T3B2ihyNOVV9LO2zrCZFVVSnYwjrH3qS8Fo=; b=qOeQ21jCnBBxZ3vFmmoVJ4F0nnDW1C0ItV7VDCBwWqngaPcg35pzWm9Yo6XRebmoDl NiJTDnqhu3ck25Vi2oNfhgw+3NDI+szL9c6p4KQ+J9oO6hHohMWHi9T9X4XPIeOoDMWA qiHY7dy0lHpfIoFMQizyTHiI1n5NeAouXmnsxckW7mttgiiW/u8GleYdkA6fk4RAZ2JV M93A8jCRJmamcXtGanufAhFWAj4TUiJ+rczPDtaXnVEIHrZXNBT5vfMEsRfrxC4b/M0p MlsfhdLHeAs9+nNCkRXrYmPAW1Npi6k2s5L8oOPZTzqYI/Yygo0TkrOos6CCR9yS+xul eKaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si1323741edl.367.2021.09.01.23.40.03; Wed, 01 Sep 2021 23:40:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241924AbhIBGiN (ORCPT + 99 others); Thu, 2 Sep 2021 02:38:13 -0400 Received: from mx20.baidu.com ([111.202.115.85]:35676 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233101AbhIBGiJ (ORCPT ); Thu, 2 Sep 2021 02:38:09 -0400 Received: from BJHW-Mail-Ex05.internal.baidu.com (unknown [10.127.64.15]) by Forcepoint Email with ESMTPS id 78F6DC384F3776F3EF11; Thu, 2 Sep 2021 14:37:09 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-Mail-Ex05.internal.baidu.com (10.127.64.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 2 Sep 2021 14:37:09 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 2 Sep 2021 14:37:08 +0800 From: Cai Huoqing To: , , , , , , , , , , CC: , , , , , Cai Huoqing Subject: [PATCH v2 0/3] drivers: Add the helper function devm_platform_get_and_ioremap_resource_byname() Date: Thu, 2 Sep 2021 14:36:59 +0800 Message-ID: <20210902063702.32066-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BC-Mail-Ex28.internal.baidu.com (172.31.51.22) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) X-Baidu-BdMsfe-DateCheck: 1_BJHW-Mail-Ex05_2021-09-02 14:37:09:472 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since provide the helper function devm_platform_ioremap_resource_byname() which is wrap platform_get_resource_byname() and devm_ioremap_resource(). But sometimes, many drivers still need to use the resource variables obtained by platform_get_resource(). In these case, provide this helper function devm_platform_get_and_ioremap_resource_byname(). devm_platform_get_and_ioremap_resource_byname will be used: .../platform/sti/c8sectpfe/c8sectpfe-core.c | 7 ++--- drivers/pci/controller/pcie-mediatek-gen3.c | 5 +--- Cai Huoqing (3): driver core: platform: Add the helper function devm_platform_get_and_ioremap_resource_byname() media: sti/c8sectpfe: Make use of the helper function devm_platform_get_and_ioremap_resource_byname() PCI: mediatek-gen3: Make use of the helper function devm_platform_get_and_ioremap_resource_byname() drivers/base/platform.c | 30 ++++++++++++++++--- .../platform/sti/c8sectpfe/c8sectpfe-core.c | 7 ++--- drivers/pci/controller/pcie-mediatek-gen3.c | 5 +--- include/linux/platform_device.h | 3 ++ 4 files changed, 32 insertions(+), 13 deletions(-) -- 2.25.1