Message ID | 20230710063351.17490-6-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 v5csp4831478vqx; Sun, 9 Jul 2023 23:59:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlF+KQ7B0rxTxiFDnwyzlE9DCAZ8vqm23y0353e1x/7N3SXQNB+R4/Fjq2qthszgC9bfTIVx X-Received: by 2002:a05:6358:9889:b0:132:d448:7b78 with SMTP id q9-20020a056358988900b00132d4487b78mr7299946rwa.27.1688972394845; Sun, 09 Jul 2023 23:59:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688972394; cv=pass; d=google.com; s=arc-20160816; b=rKoOolKkGAmnxMSkyIRVVKqY2KIt0hZeOn3L+Ug+X/E/66ihRCxT8KdUrn7gIhwUoE j7IfUXWN6Y6QsJAvDufH6j/AWpqIHW0E1z3P5MlDbY1n0JsbHjxY/kTZfDQ6icIjuFoq LWtCch3fdf5/VnbzgQnJxoYJpYAzZYbmat6BrBIHXhh8T04KJd7xcgFZ+bOzNuuX1U8x 5p57E2rkQcbJz8fRsgnl8qPT2vwl/Ld/k4QwlIfX50lTIz1HGsH9lFHylD4ApIexcX/B fhDq5DwqHRvfqzDNIGQSpG4cUp6nMs23espTLyIZrCgjM1T70MuGtJdHLi3LeSXc5uS5 6QqQ== 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=tdb26EYaPAoprJFKtW/qFt1bUD6rf5cw+jKBZQC71QQ=; fh=XXKB20LvAIJVDjsFIn94D+VpytC8Lm0uDeT7DYRkOMY=; b=G2Dv5DmDd71DHbfUXN47JztOnvvyIkvFh/lENosOCS1PABdslmqbhi3j/Mi64xhbFP Oan8bI4/LUF4ZVRL+P2kNQJi775ynfsbT3rB/VwviTaBa9CXEgfaMfC7cyj6jnDL2WJ2 LRVUhgVTwXe4Kn+myF40pJRT0QAMufD8XA8phVeq07RymqYCIOabiHMOH1LFxG1C9eBO dq0IndzOTnKjbnT8lRiKMk5oIbLILaMwQYKvYHokeLiMQKkXCt72sHXbuZh1/tjkiDkR +DYqqgC6KGUIdNtW2FXtI+iV3+XYIa1Sd4pY9l+E2LoQKdXdC53IoBWMafsQ0nYEZamc K6cQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=mabQYwHg; 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 c35-20020a630d23000000b005538cfa80desi8578771pgl.655.2023.07.09.23.59.41; Sun, 09 Jul 2023 23:59:54 -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=mabQYwHg; 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 S231637AbjGJGez (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Mon, 10 Jul 2023 02:34:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231493AbjGJGeh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 10 Jul 2023 02:34:37 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2103.outbound.protection.outlook.com [40.107.255.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E6FFE56; Sun, 9 Jul 2023 23:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gSSkzYRTuk6VSXb1xheNlM64n+674HQafmvzCkTFkOGqiqoajVuEQa0/ntcw9HwlV/UHjpOSYon/uJcrqgDA9/3jirz6PSU+8sXFyn+hWn0QWLecRx04vJ1p2SPuvntqKdSmpCvirYo4e9gSkmATijshl72aPFfn4GtKFJwvFzhie7PWXOxQPU/KOVs6omKm9lAjUpjWLwhjkxOqtl4/uEC69AnOYIFYiZ4W9js6xNybpmU2oIvk78PUfeyn6O7BbAeZHyux3Vg6lXrNctBKTa2DWQY2AezdFGJeIz0JAwbWDL46YOthlVKjIeawsfIZCGDo2wHm2z0mtroa7Dm7Rw== 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=tdb26EYaPAoprJFKtW/qFt1bUD6rf5cw+jKBZQC71QQ=; b=k5E4WXBRbEdzadbPzanbwQVEnEG5G6BizJs0tTmSrSvHkvQMHXnS2sw2uSIaoD0068NPXKlPcuUar4yijOhIEDTo7M+72yiRyBn2jkDyqaUyV6njktnEjc6Gkm27zhfnnzcAlHy0o7tYRfsjk1V6aGWI26Fs5I0PoojJiHXHtSwK7s57iHyzNo+q30qPZ+tDqiGeD3fVTfgfHeElV8yE6cyJLbaLaCVh5fKTgq9gd+hTGdVFUxHT88773lKr2O6MLzzYwlNGT9bI+hPcem2bNOfvRiTipme6TyrZUyZxH2Wr+8iDuyYvb3SDNcKXqRHkrk0M3n2eo7iCYGgyrn/iKA== 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=tdb26EYaPAoprJFKtW/qFt1bUD6rf5cw+jKBZQC71QQ=; b=mabQYwHghQB4bFolHew9/efmWbZ6guXuTHKMAvr3sa+AzWnCDEuoHuDMl/JJOMYpzaz1hyFqDx+5Yy/eZTM3VB/3FyESWGEakzZWNdblnSl7VOu/DxB9N9D1i5SQlcwQlrEVi/Oq9yFH62hKVGnME1LdQG/8tvGVOWDsP0hTQRvPfSUsAuNkd+VuBCft1WdOjsOh2Hzs3UEKqhA5+qpzoeutDkRrWi+nUrQT8CZQZ3VQeF++4eWzWJjdH9HxcqE9RczGRv56UH50+kuNldW/CjadMnFwLKcuiSOfgz9aSADv/4f8lEOdv2n/rk8vIjGmU3v5Muza66eZe3JzVIPANQ== 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:15 +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:15 +0000 From: Yangtao Li <frank.li@vivo.com> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Andi Shyti <andi.shyti@kernel.org> Cc: Yangtao Li <frank.li@vivo.com>, linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 06/11] i2c: qcom-geni: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 14:33:45 +0800 Message-Id: <20230710063351.17490-6-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: dd72630b-db8a-4a22-1388-08db810fae22 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: r9hxxLy4/Zo1BnrR1jFjsnktwE1OSZX5QwO1xwcsja4331jE1BdTCE8v+6j2cDMQ+Az+RtvOvfZk/FQAJp8ANg00fhGvQ3/EnHuVHt4zuGDnhizCirvKJ+1z3eIYguh5iMilOKr9UylQhQ8+i3qw4yBkOl8aSEKUgpnL7vuJn2IlaEr+TCRsm90M2p9rJFNdqYqT+QWzo9RvaVkWvOOl9tvSmENtX/IZoF9w9wXqkJerwevGNLlX5vTXWzJHcdXds3OCXGuyaEa4U3oBDT7UnmfHa5du8WTUW+pdotm/Q/XJerC25Axf775AeRHL/UdKbfqz9eupoiw8FGBIg6+4g50yb489edW7++7YSvHc/liOb7vfRRcekEo44yOc7iopRZIjMeue/PWqIXM0UpDv/eVu/pSBQ8+1n7INWyp2zOot+558OON/b8Um887UL84hoS2KVJNX0MmZOZFpECUnTyXhr7+2V7y5+NDDR8dpKveC9BqNXx9/+5qrWsZfc8jhINjz8PwRi6BhfK8cbNyy2TJv2wNYPZvB2t+xIh5ybsKQ9os/r0v/8Ua+aj3m0J8iJYdpsBJYb9r18I66Nx9RaYI6XsLIFu+O6xBHcah11waImcp8Dh8ZbtLWrXLUW9ZDP54avzm6yoe5uP/bNK3Cql1O8snNlcSpCjYtwPBR7Qk= 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)(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: LNWDGnA1XAKixWBrA/WgVfT8L0PvUD1RwfCvdvdhEAXFbNdZ8Ekj7ZECpbxwpCc1KKQqwupgJ5d5DtXGWjv8onh5lip4OnRHbFd9St3DHRhwR2oA+Gs3IiN9Dc1FUvyXULd0E3muXyvHSmw08b4QflvxfnYgrG/1n/MdNYCNDZLq0PqLYFPPvK4LtNRefrBI2hQkHcfiz4G5JvaoazdvJLFXRlCs6klHFdKXoRPCZS1BmXy4hWxIF0AOT695L7GEH6iaydKakMm3g7RK0HmYZOcqxQxNwGNuY8GkwZl+Jk6hixKXKF3R0j+dFaXLEAIueijXAAG+V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rONrsfYEsrgPHdf9dktmhMJUpSbnbqMW9kgMpvUefR+8OpW+kKSc7M+YlrApDEqNaUTOuWkrtXK4Ratui1GEa4thtFct6Cra0veE7pc4hW1dwt85ylQR46nhDofUaogxT09sz+YdSyYVzBaxmq/fkxSOmyRBipmWXAnPVwDO+bSGW9Quqq6P/IVoc/sq1PF8qtLYus X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: dd72630b-db8a-4a22-1388-08db810fae22 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:15.1261 (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: LWyxP8IV6GpFNuhkneUIL4aZhS1DbgxIKJJqijOrx2PhUGn1dVr7q9ogGKnNqNS6VFU/l+txwUVFkbFAi9mElw== 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: 1771015917611965063 X-GMAIL-MSGID: 1771015917611965063 |
Series |
[v2,01/11] i2c: at91: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
李扬韬
July 10, 2023, 6:33 a.m. UTC
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/i2c/busses/i2c-qcom-geni.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Comments
Hi Yangtao, On Mon, Jul 10, 2023 at 02:33:45PM +0800, Yangtao Li wrote: > Use devm_platform_ioremap_resource() to simplify code. > > 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-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c index b670a67c4fdd..229353e96e09 100644 --- a/drivers/i2c/busses/i2c-qcom-geni.c +++ b/drivers/i2c/busses/i2c-qcom-geni.c @@ -767,7 +767,6 @@ static int setup_gpi_dma(struct geni_i2c_dev *gi2c) static int geni_i2c_probe(struct platform_device *pdev) { struct geni_i2c_dev *gi2c; - struct resource *res; u32 proto, tx_depth, fifo_disable; int ret; struct device *dev = &pdev->dev; @@ -779,8 +778,7 @@ static int geni_i2c_probe(struct platform_device *pdev) gi2c->se.dev = dev; gi2c->se.wrapper = dev_get_drvdata(dev->parent); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - gi2c->se.base = devm_ioremap_resource(dev, res); + gi2c->se.base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(gi2c->se.base)) return PTR_ERR(gi2c->se.base);