Message ID | 20230707072034.48977-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 v5csp3091147vqx; Fri, 7 Jul 2023 00:46:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlHAMa+ZY0P++g0FKG13ncyljbjHphbx4cGIuhIthmRJNef9P3H6i9DZMmKvYrz+J/NiXn2m X-Received: by 2002:a05:6808:1190:b0:3a3:f13f:8036 with SMTP id j16-20020a056808119000b003a3f13f8036mr81706oil.11.1688716013563; Fri, 07 Jul 2023 00:46:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688716013; cv=pass; d=google.com; s=arc-20160816; b=Hb/qXC4s00c0o/t+1EYe4xY17m6Ia/odXrWuoT97Rf26qA2qqHo44YtMyEdGcqkpRU 6dBpLd7feqi79DDywEJ/FC18onq68tWfZrR4zpP5ahOOYYdth4zkMo34V7Zh32abFf0C ifZ5AZH7gfBPcdgPexzS5lRmdZ8YmnGZ4fkMSb+ItVpGhAKlmA82/Tb7rBJBF5BHv+s4 2YpG1AQVTPIUvSfFPSAYjN/iCnDaYsiwFj0gP5Q7RUzqVgt2Pub8TIAbEC+v1IQIIjsZ XSSNLgRYlscFruSB6TTuhoRvONspflP6Tybe3MqPoqiyt0dGEBNFmGXxD9RA8V6wgtuh Dk0Q== 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=sueL6bmHylA686jA6mVhKi7yXxUHBSJQDngnUT3zNJ0=; fh=eTsuAg26YNSknCm33oTSV54XhjqUiyfYJ3cem+9sw3c=; b=FV7a4dKe7xXp97/YQUC2ykq1mO2mVuCCZsN+W6bAaZPUX1kV75zW4brJ120q/J6T84 BanAMomI/U+8rsVL/hCbt59SZTB7fpEo8h5hzJkLWsJm+oUj9/8Y9WNjH60T33f6i10I f1FY2jwF0zE7G3evZxekUUtoVq3CbImQZWGhurp/oDsK5+2z53gOQ7HbOO5DdtSI6Ctk LG0xY+aPM60i1Lg7hkIZAQjmYI4LV7WeooQdEKoyqD0F+F6jmbGaKgOM7BZMiU92n5E1 pwkdkLsly+4sAAzeDeGZ9uDgeq/R9IBOYwQJMugQao+ZeFEQOTRZpcM2S8gUfVY6uYjd Actw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="jfW/b0VS"; 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 15-20020a63144f000000b00534780446d9si3228005pgu.640.2023.07.07.00.46.40; Fri, 07 Jul 2023 00:46:53 -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="jfW/b0VS"; 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 S231675AbjGGHUz (ORCPT <rfc822;daweilics@gmail.com> + 99 others); Fri, 7 Jul 2023 03:20:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbjGGHUy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 7 Jul 2023 03:20:54 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2102.outbound.protection.outlook.com [40.107.215.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 952B71FDB; Fri, 7 Jul 2023 00:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YEvSqwQsrLqPeg4LUQPKAGTWvgvMnG7MyznoQ+1fLTqtvkprcbNnxgv0vzo4UBXNVIfEnp1L8i+JzcTb6XIKRBKQ5K2JiUg25Keykpcv6PF6jZzNkIzoeG2sZLfcwXwoSqBmIam0pbPI/Qot02L7GZg60zXCXtzKIjwVm1h+5MAX3J1LPXn38r5XLveLQA0Bb20OvIpQ/bSXOzEVXQcyYxnqrBJSb5ANrYyToc93kI1U1T0WNkx6OoQGzAqIZ6MYd/hMofNZxpjF7lsnoNOaoSMI0Jhlgxyi5QupWdP9+GjRbK+FmohY/KfOzfP7ebg3A/8/i4ae7cKqoRt9dmsf7A== 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=sueL6bmHylA686jA6mVhKi7yXxUHBSJQDngnUT3zNJ0=; b=EHP8gvN5geWhh7HeQKwb1kGa003fYBcKVA0VnttxHynYjn6ERQ845t1lNIe/U6xqTw0AGORYRBR5Yq3Gg+Z32SIIyeR5K+fDVb5uOp4/YN0ofgY5BfTTvoWqO3Gw2nR8Y/XvE5jRIdaNSqbQBsf95f5n2WJDrAQ+rRNCohFTNbrFzN//ciie++LffngJDcyJqnDq2nGXna7yjegbaihAGR6QKoZmPgC7ZVqkuJSjZabUOMptmNlxBNoF4Fm3bZXI4tLfsYfoF7ywmefpCYgS9wny2nblRv8DefRS7O21ruRXq2SyAbcZQq1yiB62UPk+2QzF80vLJR78cZderWZFcA== 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=sueL6bmHylA686jA6mVhKi7yXxUHBSJQDngnUT3zNJ0=; b=jfW/b0VSm1vRDNfvMjJp2i/vyUsotnmKy3AVb+hkW6K+BkjND/dPLf1zYFjcODGujxdYF0Ara14/mjKYTX9rU8WRd1AoBZ/eBYcY+5oVdV7nIqKxRizbLF40KDSK3xbjAORTGXvjF29/QLbQBDFKNFh6mu6m9WbRmdlVmFZkOXTf+5ZlEDdjDEI3r0/DBBTW1tT6cecv4bmoCbyKzLn6tX0JGdMEGPAPmKrG2qIbhnEVP4J7V95R7KNe/Gw7TuCXKGKBTnPK/rQaGjs9LA+lUg82uxfHqUIoKDyRDZLfYBG5is/QaBHwsw6xQwWmqKMTku8KjmADTxQkoNk7vv2CsQ== 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 JH0PR06MB6704.apcprd06.prod.outlook.com (2603:1096:990:37::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 07:20:46 +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.025; Fri, 7 Jul 2023 07:20:46 +0000 From: Yangtao Li <frank.li@vivo.com> To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: Yangtao Li <frank.li@vivo.com>, dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/18] drm/renesas: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 15:20:17 +0800 Message-Id: <20230707072034.48977-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0129.apcprd01.prod.exchangelabs.com (2603:1096:4:40::33) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|JH0PR06MB6704:EE_ X-MS-Office365-Filtering-Correlation-Id: 128b2b5a-1ecb-4513-e985-08db7ebaae15 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2a21PTJ2ENPFyUbGMZU2cKp9OYRbfmrptgAIAWI2121fPOaFYrGl1MnowrofZcDR17KOy+P/PLRemJCnHkFdx1jSsgzOCFGXIg5DTjbsOGaoTSjMm+CYizUEQKKM/R+jNhOjXj+ZFb7lXamh2GFqcWBSuDBKh3vtauEJx3GHB4/px+B0Jx2OaWp/9OvXOfdKAf6b37ZOS6/rupbyidrduVNEjRijOtATwUJpFknZuhnLt6b9Op8vLtCP5mLyTy/IhhWm4rzi5UJzhPUdDdyDqJ9Ls9YTmKjwVdp5/h7eRYJQ4NaTjIClHXGYQuCFB1FuccS9PuvkYOE+hZ2l2fzX1v/62bFHQT7Jdx9mlWyf0YNhDuEFU5sMBXRHJDZSzrPNGtndK+47saCPsWZowncW/qdcfcYbb+iB56jTXNmJWQmApAUlvuCGIgkzd8Kpf3PCGNsW7Wb+6bOz44V2r/kccTyesItZL3z1KM9EloGeQkenL1PVYNx6rIxiiR9VL0fwgUkWSDAJCjbI5pcTRe5uBKhPB2mKnX/FE9fehHKU05EWAX8qd3axr5m8uYV4akUQ6egHNhqGtySf2WJDsyRn5sAD6TqHOoJbJ0qDR3U6GVTCqlbTCPgVCMv1GchRHgL5 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)(396003)(366004)(39860400002)(346002)(376002)(451199021)(8936002)(8676002)(41300700001)(2906002)(316002)(478600001)(6666004)(110136005)(6512007)(52116002)(6486002)(66946007)(66556008)(4326008)(66476007)(38350700002)(38100700002)(5660300002)(2616005)(83380400001)(186003)(86362001)(36756003)(6506007)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: D+tfAoTcGfmvhqTQfLI22ECbUIZ0XxDwee6oSZ7lAj+PkogHgDL5Q/VcfZT0pGDW4Bwht3xqPFlDlFPg93Uq5srZnbBF48D6kLL3ErePI8S26LGKWMMBa00Yla4AmCoekIp48T3ntiLKK5oV+cjwAz1s+6LHnxYV9KfVMtP0mtrs6sz/5IJJsH70kiO8oWx1m+X79BzYNlwczRm/5YUhPgKvCBaznP+NRaoH/sXY10/v50KrHbeVZvMFu705nI1VEe4R1b3VE3YZeniL+nWSf5c3cd2wa3KVmpuPgYrXAmEZ9Kez310A/8shP9/tjeHEsFXjYKJFeJg4AAWzV2XoqRznEkXbvi7MBHSb71aRnqxqJTciaaGaW+BzaupJCtU3Qcf3LulglXrWmLZdpsrZyn/mSNj5f8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dkJwJmrrLgH3lYWRlF7CCkcUoidXMaVHY0twOtXXUQbP5ckMywtkt6a0yr6vXHMKMrTk4cFa/VbfmJ4mLBQHLwE1OIJ2mwQ+ZX0231ve6AD0mHRz0qL X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 128b2b5a-1ecb-4513-e985-08db7ebaae15 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 07:20:45.7168 (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: GzpuNYJd5mTCRH9LR7wxRmonyiR6hnh256vOm697sFWCTFveZ2OjW3H+TzNQ0w0I3iuLeUWEGXhfEAmFIMEOvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR06MB6704 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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: <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?1770747082159239820?= X-GMAIL-MSGID: =?utf-8?q?1770747082159239820?= |
Series |
[01/18] drm/renesas: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 7, 2023, 7:20 a.m. UTC
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Comments
Hi Yangtao, Thank you for the patch. On Fri, Jul 07, 2023 at 03:20:17PM +0800, Yangtao Li wrote: > Use devm_platform_ioremap_resource() to simplify code. > > Signed-off-by: Yangtao Li <frank.li@vivo.com> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> > --- > drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c b/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c > index e10e4d4b89a2..4bf9f5d15fa8 100644 > --- a/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c > +++ b/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c > @@ -1002,7 +1002,6 @@ static int rcar_mipi_dsi_get_clocks(struct rcar_mipi_dsi *dsi) > static int rcar_mipi_dsi_probe(struct platform_device *pdev) > { > struct rcar_mipi_dsi *dsi; > - struct resource *mem; > int ret; > > dsi = devm_kzalloc(&pdev->dev, sizeof(*dsi), GFP_KERNEL); > @@ -1019,8 +1018,7 @@ static int rcar_mipi_dsi_probe(struct platform_device *pdev) > return ret; > > /* Acquire resources. */ > - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - dsi->mmio = devm_ioremap_resource(dsi->dev, mem); > + dsi->mmio = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(dsi->mmio)) > return PTR_ERR(dsi->mmio); >
diff --git a/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c b/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c index e10e4d4b89a2..4bf9f5d15fa8 100644 --- a/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c +++ b/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c @@ -1002,7 +1002,6 @@ static int rcar_mipi_dsi_get_clocks(struct rcar_mipi_dsi *dsi) static int rcar_mipi_dsi_probe(struct platform_device *pdev) { struct rcar_mipi_dsi *dsi; - struct resource *mem; int ret; dsi = devm_kzalloc(&pdev->dev, sizeof(*dsi), GFP_KERNEL); @@ -1019,8 +1018,7 @@ static int rcar_mipi_dsi_probe(struct platform_device *pdev) return ret; /* Acquire resources. */ - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dsi->mmio = devm_ioremap_resource(dsi->dev, mem); + dsi->mmio = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dsi->mmio)) return PTR_ERR(dsi->mmio);