Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB031C6FD1D for ; Tue, 21 Mar 2023 14:44:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231477AbjCUOoZ (ORCPT ); Tue, 21 Mar 2023 10:44:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231452AbjCUOoU (ORCPT ); Tue, 21 Mar 2023 10:44:20 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2070.outbound.protection.outlook.com [40.107.93.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28ABA3019A; Tue, 21 Mar 2023 07:44:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ny7oOYvjXf7tW3KFe9oYGrfCjFFdVeUa3doq75k2vCw6Ln94A9XwmYWTC5Twivfa8mfh0t3Luwtes8PorZ8JVRBKKbZVu0tCkiDBE12fVt4cxxjb4QQReOd5URs0YAcwpQW2i7J7pt19Zkacbh4R0KE1C4tRuj5kWPYHrmg4JALFijz8jUDRxIEVzzMR+YlRYliFddW3JRmA5ZUK4OeibANIVfLDYgYF/3lRyA5jtgstyKouBIkS5+25RiqWZhmyy+66hxyaIcWPhQHvcGxrx2Lvp69wNmzM0grs2ehYYwHpiRNleZ4tk4lIeE95//Rn6gh4SJgctZEOc3XU4AMtSA== 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=qJS6oOgEBYEDS1qz1mK8mVkthQsvsrYkbVkJorR7+6w=; b=TLzwPxABnBjQlt8M4qssbzj5z/Ukayhy/+JEQFoE9VhbpjrI+GA9Y11VDqa2t0BePSxJ3oLoraKsNSmL4tUqDeT1ZECkjpyi18sBB6H3jVA30qWYddNRcLpEq0avsFiFdtG5hhGBi2IXR8b/2qxcYP+ReD0QyUuYxR/4DhHXbR3rHvu88w/qY/JMPHNZkUEf7nbhsNdJKe8kr6sWZSu6ztgs61M0yRX5/WNk7Zg3wEtNuJ/6JIwVe0lXbXeTdjtMjs2iz3fJ32g54laWOS1Zsgt8LI7916+llEoB6EF4brqdtDuj5sttNM4FSAJ6ivOk65vc4VeLMYLgLMsM5CslpQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qJS6oOgEBYEDS1qz1mK8mVkthQsvsrYkbVkJorR7+6w=; b=UuyHNl7ob+Vr3LLGD8fRvKegjBG9jEmxQFAgHI4svSALRvcRuGpeU970I5Zhr7eoIOlmDpmiHqoBCxpR39Idg/n4fDZ+KAhwrL6CH/qtms8f/MHgK1PHoivluzg9rN8jz26CieZ76y+LhcRhiAiYX6Cdsf+SSq2DuPkvgj1mo9c= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BYAPR12MB4758.namprd12.prod.outlook.com (2603:10b6:a03:a5::28) by CY5PR12MB6369.namprd12.prod.outlook.com (2603:10b6:930:21::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Tue, 21 Mar 2023 14:44:12 +0000 Received: from BYAPR12MB4758.namprd12.prod.outlook.com ([fe80::4d07:7f52:c833:9603]) by BYAPR12MB4758.namprd12.prod.outlook.com ([fe80::4d07:7f52:c833:9603%6]) with mapi id 15.20.6178.037; Tue, 21 Mar 2023 14:44:12 +0000 Message-ID: Date: Tue, 21 Mar 2023 15:43:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH -next] i2c: xiic: Use devm_platform_get_and_ioremap_resource() Content-Language: en-US To: Yang Li , michal.simek@xilinx.com Cc: linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230316054325.108457-1-yang.lee@linux.alibaba.com> From: Michal Simek In-Reply-To: <20230316054325.108457-1-yang.lee@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VI1PR0501CA0009.eurprd05.prod.outlook.com (2603:10a6:800:92::19) To BYAPR12MB4758.namprd12.prod.outlook.com (2603:10b6:a03:a5::28) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR12MB4758:EE_|CY5PR12MB6369:EE_ X-MS-Office365-Filtering-Correlation-Id: ceecdfdc-10c9-486c-6af4-08db2a1abc2f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /U1HKn2ojwlpCnb13yAg2T8TyA2lpO19dkXcDxMlnwziPl3t49/P8DUajzCYR1gyE0uUV3XmHHnPZoVdR13xb1Lz5Nb/cB5G7vttrmV75BWQboCz8IiaChGJZEDwsavsKExIig9HF6zfLqre7UoUx9yID72DnHU55F1sNyDhFcWk+GgFGvWG6i1Mv9Ww7v+p6yXXOhC1c75NHQ+OgBfxRFA+TB6NVjpTi9XCxcx5GHheHH1yY10rgkMiw9Wxd+rAD638yl/P5kIFRKbD+wb6hgLtylThPDNgj4Gy+Q8Z46+hdmzTGRCqd3R7nqAMenTUsaT+BAZT7M7wzSUaDVno1rklQaSVRkrZxRn0se4LBR2buemxdbRhOtl6ho91RZQjNttCGzHfOONwtZwCfssXd/jNbNqYUN4RYhl/Wyl8qzFrE64u0wEJ/JF8ORFjDGA5lqIxsUaW/k1E582jvnont1L0kfZPYBJqWaROx346WnDdXA13PUR8uUXXpUmDHkXsKyL7kAMLpGIFVgMjFVST37b45XK5SS1hI7RPkuBEVAmRR0I834Xw3xfMqdbG8gIJbJNTwLH9GCI86ssaqMNDpk7I/6dpFcaLiPDQ/Fj9R7f8c9M47iOM71PsSfU7I91V0sEJSpBQTCdN0LlE5nGXw0UcHqmeLX847t+7/wdM5ez/VRHTVmrgtNJYL750LFRqwXTEyDPasQnOvo7R8XN0AwiCxk4KFEaANNQZ6mDTVOU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR12MB4758.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(396003)(346002)(366004)(39860400002)(376002)(136003)(451199018)(2906002)(31696002)(86362001)(83380400001)(186003)(8936002)(6666004)(38100700002)(5660300002)(2616005)(41300700001)(26005)(6506007)(6512007)(53546011)(316002)(478600001)(36756003)(31686004)(44832011)(6486002)(8676002)(66556008)(66946007)(4326008)(66476007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dEk5bytXRnkrQUwxdFdOalNQeW0weWJaekZWdHJvTEROVWR6K3RWY0dhcDBD?= =?utf-8?B?ZlBZOU1EcXFsejVmclV4bzZjWlRHeGpDeStwSHN3SGh5QnIvdzA1b2N4WGNO?= =?utf-8?B?eXdKOE5FVXNXdGVhODUyZStSNm4yL3FqRWJpYTRnNERsVS83a0pKMWswTHNT?= =?utf-8?B?ZUdoVEZNMDZCSG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B?NFdqQW5jQmI0NmRub25BVlJ3K2hhU3d0TnVKSzdabmRzd0NoRWdTdEtHYmZY?= =?utf-8?B?YWczc2xFVFM3cVkrZkhPR0FyR2JzdDhKcTR1MFJhNEJ1Ky9Bd2lCYkxSK0Rk?= =?utf-8?Q?0irTLYE02/Akr3123BMkXC+Tp?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: ceecdfdc-10c9-486c-6af4-08db2a1abc2f X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB4758.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2023 14:44:12.0297 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: aKOoVUBZZAU2LpcOBUCM2MP2/6x8drFgE2jdScrr28LCbMX+KhnDCiNzyHK4haGF X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6369 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/16/23 06:43, Yang Li wrote: > 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/i2c/busses/i2c-xiic.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c > index dbb792fc197e..0eea00d10545 100644 > --- a/drivers/i2c/busses/i2c-xiic.c > +++ b/drivers/i2c/busses/i2c-xiic.c > @@ -1233,8 +1233,7 @@ static int xiic_i2c_probe(struct platform_device *pdev) > i2c->quirks = data->quirks; > } > > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - i2c->base = devm_ioremap_resource(&pdev->dev, res); > + i2c->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); > if (IS_ERR(i2c->base)) > return PTR_ERR(i2c->base); > > -- > 2.20.1.7.g153144c > Reviewed-by: Michal Simek Thanks, Michal