Message ID | 20230710063351.17490-9-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 v5csp4826381vqx; Sun, 9 Jul 2023 23:47:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlECUg5QD8m6+gs1E1ZuV2quOe0s27YvyzeMFpzMnwf7DiXw5fXxP9gwUe76Rc+LYoHVcwDF X-Received: by 2002:a05:6358:e495:b0:135:5e26:19a1 with SMTP id by21-20020a056358e49500b001355e2619a1mr1804751rwb.3.1688971677781; Sun, 09 Jul 2023 23:47:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688971677; cv=pass; d=google.com; s=arc-20160816; b=Po1s9ELrJqCqqchliybALIdLD1tWJcNpF4GEW9l0R5XRBJG4Oaur0m1rR/F8+kvCIE igarAFw0YgxEnhJGzmqOhoH6QYmJjWrHZIKWfc2Jpd++qQ/+eyEH4FXCEpmQbDh5L2Bk OWWjU6wGjRoqOCvqZVj03lV0FbLb7gNBlbpuqWgTUeX7eKbZCRJTLjyQBzCD1wnqJ6qz 6hBFuehKnJ11ogxC4h+SOm3ff6KVXWao1kIiFiNUQr4LjLeeNMG+9heaUhgHf8aaQGR+ 8VYBJw9ulsi3SJt+0Q44k4FtVSi+P5RzEkam+4bftiOuv1BaQy+3fwQ9BJMJOny6OtE7 wI0g== 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=zi6TzN2hL0vt3qrUYbV1lXQWxJA8TiWxiQ0uLCPdZRg=; fh=gL9ynPXIyQl8rY0DVgi1xWan2Esc8+OG4mSO4PexSuE=; b=Rvb2KOLZjxbWrf9v5+nySJ1jpOYMJjqFcJhCYkt9xJEi2ckGjy+gPgjQW7o8WkqHmB s6WffPVsb5fcNEPXemNwa2xhlMk8wXXGnZXnGNIntffE3UanKDTjDLU6SFXnmCAJu84l Mi4+pV20VQuZYV5+gnudAWLu8hsqnrH88rh7s1WGPprPwZ5KLJDRsTCXdVRKU8QSzbd3 awOFQ1zzcf6HoxoOZyAN+Ge5aEmBSdup/S1JZdNkIPIa+UbuyfTYl5UkJAsvmIEj1PnI tQUV7Ko32Z4gcBdv2pxfyVo9HyZ0S2WqCvevMQFeZoxc0yD2Vw3JH7aMgUW549DZQVB/ G/ow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=AKYMt+i7; 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 e9-20020a656789000000b0054fe7239928si8620661pgr.388.2023.07.09.23.47.44; Sun, 09 Jul 2023 23:47: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=AKYMt+i7; 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 S230119AbjGJGfT (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Mon, 10 Jul 2023 02:35:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231448AbjGJGeu (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 10 Jul 2023 02:34:50 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2121.outbound.protection.outlook.com [40.107.117.121]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B26A10E7; Sun, 9 Jul 2023 23:34:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DYi+awHXDQG4k6p4IoysMfkApYWgNYQfTc957EObkOht7mHQ5oT1pMLdHzNS4rmLLWD0R5T09ezlqb7YZgv9LDv3BYnYNQGVXXW9exFOWDlOaWJWopDIKZI44bUI5o1eCdOcsFpnxDyYN4bH05sAyXYzt9O9GUqyVLva7XjtdtkeY8zjnN8ka/A3luk/psSMfpczbLWbUfj3PHlkOX3RPnnIecynqKM8o51Pa1nicP96DPl1HHhm8Y0He/8IBRohfJH2jwOEF5H7FjLuGHOdq3n0SqQQvZxJUmXjysSLsanObkYha4js3XsRK8oJxjAXun+6hsb/XyMpre5KNamiQw== 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=zi6TzN2hL0vt3qrUYbV1lXQWxJA8TiWxiQ0uLCPdZRg=; b=PBNC0xE9kj6/24BAY7LRhuBksyBQeEJ8DJnnpH5WHY7O6amm1eyHpEq/S2Kr1bXqOmN2ybffCrm1XxTkCAIUcP25hhzORKP126FSKphddbfPtfUvSASucg/Dq6YX+j2C3zUOu54dP+uQddd4ecpoda8NPwNYA57foG00sAa/1SHVkRj8+N9RoXPHSdiAGJHYblE+jGRWHsOc7wqcxO+ztMYmm3JXpFVYLL0KlO04hy0ldwVjZRzmeJWRJlOZHmoIbwHKkr7UNyWagDF044pyNHQngpzHeSGAwcegHEMvjXla6yly1TOjHH2K7tmYFFg2P8mQMHbO9BJkApA8F9VqZg== 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=zi6TzN2hL0vt3qrUYbV1lXQWxJA8TiWxiQ0uLCPdZRg=; b=AKYMt+i7iptr1bbXpuEj0KNYS0cPQhQhmLDY9BCErfootRxuSvAC00DYOTl4NPITpl4CKEJgzhK3mh8gNBz5YQ1uAyOzFrAKPgQ2B2H3Ycb0hkqVZY2zKceMkOpUpj8my8ULOhPJVztyrV5TDjv11aMYbenaXmaigHvZvgKifL/KKljFbdVpvDP0cnhk+7ja5bsralSKe0ATjVECvMhG5zBEeegaG4v2Rrf1+sa19TdVXrpNV6TFezKOUUJjDSNO4aXllxc/jngdfy1qPzYD8eJHDtelHGnAFa1T8AdSvgkbPXSlDAtlPVzTRoQyzCKYgXD2sSH9PFHHdMzFExjXVg== 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 SEYPR06MB6586.apcprd06.prod.outlook.com (2603:1096:101:175::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 10 Jul 2023 06:34:21 +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.028; Mon, 10 Jul 2023 06:34:21 +0000 From: Yangtao Li <frank.li@vivo.com> To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Alim Akhtar <alim.akhtar@samsung.com>, Andi Shyti <andi.shyti@kernel.org> Cc: Yangtao Li <frank.li@vivo.com>, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 09/11] i2c: s3c2410: Use devm_platform_get_and_ioremap_resource() Date: Mon, 10 Jul 2023 14:33:48 +0800 Message-Id: <20230710063351.17490-9-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230710063351.17490-1-frank.li@vivo.com> References: <20230710063351.17490-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0021.apcprd02.prod.outlook.com (2603:1096:4:1f4::14) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB6586:EE_ X-MS-Office365-Filtering-Correlation-Id: f6827966-e49e-4221-6b83-08db810fb1d4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +FBjCoiP14hCSPJsyP63vC3BUs258jb4+usWZ/hMkQ0gvu6csK2YETo+wahMgGEUxRqvgXs9L6ff+yCrTzKFHXdWDJBSR4VqYW1sD4wML0E1RspGmWBme+dyhKSWl4G9fRvSCq7CN2qZxxpeBlDZgmxvdfYVGY4rEqCxCSWDXAVlsPF3QhC/EBiD0KkPnjboHE3WbtOQuaJ6jaKAMZ/du2qdhQOYx7GE5i03Wsz4iUBhLgMPF40K43Z+tojgfeZ7Wa1rP8g/UW6I5f6lVN0QPkgQ1OlRNMafaLMUsLvcwYqyls4p/WFm9ALK9KBU5mGpTXCUF94t0vYOWWDdxMMAuM8X/9nLFfLvuEmqLLW/oaBGrEQFD1S1M1txb37asQ6+Yj2DVNQPXZwy/HZoN0fWHQkydP5i7X1dW42ruDMzopcLRmgDoNY1OwE9f0LX644NeTBANnTAhD4/i9xkg/6KP79r1Vla08szllqsd4UPQRNdDbKG9fdmY+9R4QORbt4dmKVssQ/a4Nixue4KBsibjpn9h614xUq7GjbToOB3yz7b8pvlf/zc9lRy+epNJKL0ygpvVxsOzVLK53xOY3h87vgWQ9f8YYyZGdaqOWgZKlC7ZxxAN3LNF6GarDE6M+JT2yBw/jzBuzvLZssjg1WOlbUGPuWyCOV8LZNiFM2aI0E= 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)(366004)(39860400002)(136003)(376002)(346002)(396003)(451199021)(52116002)(6486002)(478600001)(6666004)(110136005)(83380400001)(36756003)(86362001)(2616005)(4744005)(2906002)(66946007)(186003)(6506007)(1076003)(26005)(6512007)(38350700002)(38100700002)(8676002)(4326008)(316002)(66556008)(66476007)(41300700001)(5660300002)(8936002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: d3qR78BmQLkW6ZLfIgxCggh8A63AsbTvzeYVRVxXSm2rErZk3dSoIyKuEOTwZUzJ0smBQaIOgWnvRFiAm9zPzqPu505JaGt1+h9LOCzsUUM9qgMkSjaa+xvQeRBswzYnJSNUba9VV3tKoQIPKfADd3h92VNYzzu6wvlMAz1jAxtkFc0XmuYxDd1kNIWQIywq8lSO8plT1a/GslOIpWDDnoqqOWP9sHRFiV3JPtua24LrD9cwCeowISwDLC6ALzRkYLRYaivPtCEGXyt36fah6Jk8kl+KZt9CMjSVu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czB3TMNCjxOeZuDaeelSnR4/pOEQRjId0Ko/CsjQ374M4ehQNKr0tLlD39G+qKLsM+IadQy1AuDWgR4e6Z6UDB+4iCJ5Wohm+wMZ7ve/pItBnnMpWWipzM1/L5RMb/lzvCBPlwQGqvAAn+PVP42P8UkxzpE7Qhk9msz9qhwYK5W16Tf8eYNYfTcelW6tdeuTCaOoI6shXpGsKmY3GVr7wDUBTpS40/AA X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: f6827966-e49e-4221-6b83-08db810fb1d4 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2023 06:34:21.3142 (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: 3fnGRPtnG2vjTMRO9KKD07C7qfST96h1KAIU0U4pT9l6ycjAyX7jAhILdJ5AHf+ShBs6I5r7xrtXVlmGCaS03g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6586 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_BLOCKED, RCVD_IN_MSPIKE_H2,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771015166239909822 X-GMAIL-MSGID: 1771015166239909822 |
Series |
[v2,01/11] i2c: at91: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
李扬韬
July 10, 2023, 6:33 a.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/i2c/busses/i2c-s3c2410.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Comments
Hi Yangtao, On Mon, Jul 10, 2023 at 02:33:48PM +0800, Yangtao Li 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> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> Andi
diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index 28f0e5c64f32..c14c3807e135 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c @@ -1034,9 +1034,7 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev) dev_dbg(&pdev->dev, "clock source %p\n", i2c->clk); /* map the registers */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - i2c->regs = devm_ioremap_resource(&pdev->dev, res); - + i2c->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(i2c->regs)) return PTR_ERR(i2c->regs);