From patchwork Tue Mar 14 05:42:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 69318 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1591291wrd; Mon, 13 Mar 2023 23:18:02 -0700 (PDT) X-Google-Smtp-Source: AK7set81qaK6svpyznSQe/t/Sl0TO+oaYVI/4w3Z/XSCyr/2AK+uNZZKC2ss8jzUz01aK/ZOwxZl X-Received: by 2002:a17:902:b20c:b0:19e:8267:9590 with SMTP id t12-20020a170902b20c00b0019e82679590mr26034380plr.41.1678774682046; Mon, 13 Mar 2023 23:18:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678774682; cv=none; d=google.com; s=arc-20160816; b=ifgiVE+rLyAxp/Q8d6WTf1WqziltdGJ+eIAjK/T6NBaast28Xezrqi09VRr5MkRWyy bjubKbL+A8BeFZKYiIeUVt0Mc3wNlSYjBiWYVwTBxG0etU/ZhuW+Ri+D43RJfgIKyPLK G1qIpB3BvZ6uajT+CXje3SAVreG+k95tBS9idfzEcStZ4uTqJ+epwfWRO/b1X7F6iB33 RGe08BHEYObGvs4hsf+l2Q/7ItuWuBoa3IZHODLDw7QC/QpI2Pjo4nDAsSVjsWFbq6Y0 m7e4g3hAgDqQM13VWihVM9YjQZaoU6kkn202xJ0vzfw1MmIlRpGgT2P2kgle+0JT0D/k rG5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=0CD3o7nR24GZ0n7ikRcp8Kohkic7dSmiW104EkJWZe4=; b=q1UZLr3pyHJ+XpykrRnRumNz7I2UxO9FBa3IMcKbof214UH6hKVZSUmJKJWGyTbwNb y7KprAZRBBfk7LwY4G+wPYzlE6clbTOJGCHn+rJ/X2FYhQNy9HKxrqN2KkgmuHI+Tpp/ ijviUmSXc2VGqOEuWcfxjUaZglp5zKX/6up6wAT+usKFDjQ2YaFlbFvhjhrc40E2erkl MFcWVtbDSZAe/PTXzcHfI5TeSIzdX+nsXMb7lZNQsDSihzdUCrVe+3u/YEBFQUENv+Bp /Zn138gJmSrYD5KgsozAr70lTlFmeVehnTq4zyG4BIssLvAu59iXBuC/VPRnf7zJBwAX BcUw== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lg13-20020a170902fb8d00b0019ad22c40c7si1581596plb.132.2023.03.13.23.17.47; Mon, 13 Mar 2023 23:18:02 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229968AbjCNFm0 (ORCPT + 99 others); Tue, 14 Mar 2023 01:42:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbjCNFmZ (ORCPT ); Tue, 14 Mar 2023 01:42:25 -0400 Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A9CC134; Mon, 13 Mar 2023 22:42:23 -0700 (PDT) Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VdqljXD_1678772540) by smtp.aliyun-inc.com; Tue, 14 Mar 2023 13:42:21 +0800 From: Yang Li To: deller@gmx.de Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next 1/3] video: fbdev: pxa3xx-gcu: Use devm_platform_get_and_ioremap_resource() Date: Tue, 14 Mar 2023 13:42:17 +0800 Message-Id: <20230314054219.80441-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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?1760322840749910829?= X-GMAIL-MSGID: =?utf-8?q?1760322840749910829?= According to commit 890cc39a8799 ("drivers: provide devm_platform_get_and_ioremap_resource()"), 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: Yang Li --- drivers/video/fbdev/pxa3xx-gcu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/pxa3xx-gcu.c b/drivers/video/fbdev/pxa3xx-gcu.c index c3cd1e1cc01b..d16729215423 100644 --- a/drivers/video/fbdev/pxa3xx-gcu.c +++ b/drivers/video/fbdev/pxa3xx-gcu.c @@ -599,8 +599,7 @@ static int pxa3xx_gcu_probe(struct platform_device *pdev) priv->misc_dev.fops = &pxa3xx_gcu_miscdev_fops; /* handle IO resources */ - r = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->mmio_base = devm_ioremap_resource(dev, r); + priv->mmio_base = devm_platform_get_and_ioremap_resource(pdev, 0, &r); if (IS_ERR(priv->mmio_base)) return PTR_ERR(priv->mmio_base); From patchwork Tue Mar 14 05:42:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 69323 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1594311wrd; Mon, 13 Mar 2023 23:28:45 -0700 (PDT) X-Google-Smtp-Source: AK7set/aDP4I/nLNOiqFjiL/12xNgvB39/QEPWNUdXZD3BdYBqHLsArXGYT0vhP8W7wJbhtzc5/t X-Received: by 2002:a05:6870:6083:b0:17a:a4af:8e3e with SMTP id t3-20020a056870608300b0017aa4af8e3emr860084oae.47.1678775325444; Mon, 13 Mar 2023 23:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678775325; cv=none; d=google.com; s=arc-20160816; b=UZ9ojs1DwJUWFJJ3wHWx39L2nUnAqG+dhQyXx9OQBbIcNV5OyyJSAllXfUQRv6/bZ/ hf1ep4xSXaUeLNYKm3/8eKjNUtC3YGVxKM/u1FxkCD3O3n1DROAyUBgYJrBmYWZmVked WpS8VSuyISztO6dtTjHc6nzVXoOLIafW11y1fLDsUvVTqlnxgtaZZSHbRHs8UTE+4c9M mj3mJcTkz3enFIi/AidMEM3RsEW4iNq3of0TcM5hJ6SXmCCabLC1jMMHoKB1RIxVJrG5 O2uQKMLwJD7NYaCmCpcTXv4wJGdX76iXCE+tp5d6Rh3qNfvCT6WEFouB7cABQ+oxTHBR /t4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WoCPQTwc3h8O0sBDFPz3U+2sn/qpoyTHPocZlh7pwZQ=; b=FKfwfEOF9dgWCDDL/uD92FpIaib5GpkLEHD7Kjb9Yn5VVT7MyUe4NJxjcJizodL4S8 TQSn6+fHvWnKzU4cG0U8095jWMN3z0eXRsLWcQw7nORGB02SSJ+ORT5pdHNrTMnTRc3p hIf7j15DZ4D2NqwlN53DZ/TxSAkbTCBZXZeJNdiwf9ZADcG2ONqL5zL4HlmxPktHKZel NFH6NJJeF9xHoBRkJy5deEJy9+5itHgonZ6JMO8nN9AhRGZum/9d+uZQvrKSn/pGkaZl xnDxo3Bu/hmc+HkodGErT0OHV7326vE9Ogf2j7/b/9Y07FodZPW9lbwLrprfPGsSZ8F/ Omvg== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gf4-20020a056870660400b001722c65fc4esi1468971oab.315.2023.03.13.23.28.29; Mon, 13 Mar 2023 23:28:45 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230034AbjCNFm2 (ORCPT + 99 others); Tue, 14 Mar 2023 01:42:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229961AbjCNFm0 (ORCPT ); Tue, 14 Mar 2023 01:42:26 -0400 Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E92976AA; Mon, 13 Mar 2023 22:42:25 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VdqmRdO_1678772542; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VdqmRdO_1678772542) by smtp.aliyun-inc.com; Tue, 14 Mar 2023 13:42:23 +0800 From: Yang Li To: deller@gmx.de Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next 2/3] video: fbdev: wm8505fb: Use devm_platform_ioremap_resource() Date: Tue, 14 Mar 2023 13:42:18 +0800 Message-Id: <20230314054219.80441-2-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230314054219.80441-1-yang.lee@linux.alibaba.com> References: <20230314054219.80441-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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?1760323515405399236?= X-GMAIL-MSGID: =?utf-8?q?1760323515405399236?= According to commit 7945f929f1a7 ("drivers: provide devm_platform_ioremap_resource()"), convert platform_get_resource(), devm_ioremap_resource() to a single call to Use devm_platform_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yang Li --- drivers/video/fbdev/wm8505fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/wm8505fb.c b/drivers/video/fbdev/wm8505fb.c index 8f4d674fa0d0..96a6f7623e19 100644 --- a/drivers/video/fbdev/wm8505fb.c +++ b/drivers/video/fbdev/wm8505fb.c @@ -261,7 +261,6 @@ static const struct fb_ops wm8505fb_ops = { static int wm8505fb_probe(struct platform_device *pdev) { struct wm8505fb_info *fbi; - struct resource *res; struct display_timings *disp_timing; void *addr; int ret; @@ -299,8 +298,7 @@ static int wm8505fb_probe(struct platform_device *pdev) addr = addr + sizeof(struct wm8505fb_info); fbi->fb.pseudo_palette = addr; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - fbi->regbase = devm_ioremap_resource(&pdev->dev, res); + fbi->regbase = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(fbi->regbase)) return PTR_ERR(fbi->regbase); From patchwork Tue Mar 14 05:42:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 69309 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1583478wrd; Mon, 13 Mar 2023 22:55:33 -0700 (PDT) X-Google-Smtp-Source: AK7set/wr+kHxIbOnp3uBGUuJoWDdGr5n2KmtJNhn2FFjpCnJg+8xZ8tK0cWaFWUsTqm8Lz0QGyE X-Received: by 2002:a17:90b:1b4e:b0:23a:5f51:6ee5 with SMTP id nv14-20020a17090b1b4e00b0023a5f516ee5mr38675709pjb.12.1678773333026; Mon, 13 Mar 2023 22:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678773333; cv=none; d=google.com; s=arc-20160816; b=miuTGUPcLyip7gBLw5ovCk/fBGnuAmsxPeTj9bY8i1X6TKzv4YZZXGblSl5gQ+y78A 1UINkSAJrxa5ycJr0tRCsjG/6mqfCrSehD4eyYs8jub3G5HKutFipzu5yWOpfUHpseii FcW99wlI1JUQD6EBaHPmkvvI9B2cKTMZ8B4xMuZnkDXuKt4TWvTJrHtxLOosyE5adN4E 3B48ympY3/T6fkGSJmSlxbEfuUSZQCAfih0PlwBjhveaMibE+aNMuQC4M3sUrrqB3l7K anvlU/JprBOPzuqoCaarqnOPvkzs2d+Vj+y0Ri9VF7NsOvlrgWKWolPs29u2A1jtWXW6 rHgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=dMvL/QlV6Dtkhj6FNOnLNgKPQPOaSWDacWNywd0fs2s=; b=IDAZdkKENYWJ5NSWlTBTXyF2d1JGbMOKnaw9a86XIrFVenrn9gkYbWvJEewMCh/Ni7 2Da5Btl+CwbjzmCdu1jf5sU3KtC6QcelsAt7GP74tw+0hvMuYb1wUdiNsUkJUzJ+x+vr veL/yjlBSHZnLwMY2ud24MjwlUMqY/TzLr6hOpEbMSC9F5Dqr411RgaiLqpzvJHOH+Ck XjVYO85JiKODSskkM1f+53ng4TCrT2RJIIXn0GFtUBhBcR7RWaMxuMrGOJeJeNU7mGjP zuwx47TpmBd1beuAezHjHAJdOAH8codu3Xs3sj/DSgX6pwmtDg3YhYEhH7t7M+rP1/Sr QkWA== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh1-20020a17090b4ac100b0022915b6dd7asi1943595pjb.145.2023.03.13.22.55.18; Mon, 13 Mar 2023 22:55:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230109AbjCNFma (ORCPT + 99 others); Tue, 14 Mar 2023 01:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229802AbjCNFm2 (ORCPT ); Tue, 14 Mar 2023 01:42:28 -0400 Received: from out30-112.freemail.mail.aliyun.com (out30-112.freemail.mail.aliyun.com [115.124.30.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31AAC76AA; Mon, 13 Mar 2023 22:42:27 -0700 (PDT) Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VdqljY2_1678772543) by smtp.aliyun-inc.com; Tue, 14 Mar 2023 13:42:24 +0800 From: Yang Li To: deller@gmx.de Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next 3/3] video: fbdev: xilinxfb: Use devm_platform_get_and_ioremap_resource() Date: Tue, 14 Mar 2023 13:42:19 +0800 Message-Id: <20230314054219.80441-3-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230314054219.80441-1-yang.lee@linux.alibaba.com> References: <20230314054219.80441-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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?1760321426541301862?= X-GMAIL-MSGID: =?utf-8?q?1760321426541301862?= According to commit 890cc39a8799 ("drivers: provide devm_platform_get_and_ioremap_resource()"), 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: Yang Li --- drivers/video/fbdev/xilinxfb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/xilinxfb.c b/drivers/video/fbdev/xilinxfb.c index c17cfffd9a84..7911354827dc 100644 --- a/drivers/video/fbdev/xilinxfb.c +++ b/drivers/video/fbdev/xilinxfb.c @@ -273,8 +273,7 @@ static int xilinxfb_assign(struct platform_device *pdev, if (drvdata->flags & BUS_ACCESS_FLAG) { struct resource *res; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - drvdata->regs = devm_ioremap_resource(&pdev->dev, res); + drvdata->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(drvdata->regs)) return PTR_ERR(drvdata->regs);