Message ID | 20230706113939.1178-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 v5csp2497415vqx; Thu, 6 Jul 2023 04:47:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlFCihVaDqXo2O1mtu8vI26tSO/AFEzbzvwbJupEULyBjCDOdCePUse6vkEPLyVlqdTgypw0 X-Received: by 2002:a17:902:e54b:b0:1b8:8dab:64e8 with SMTP id n11-20020a170902e54b00b001b88dab64e8mr1197641plf.36.1688644027481; Thu, 06 Jul 2023 04:47:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688644027; cv=pass; d=google.com; s=arc-20160816; b=GCzmOJxOfsT5uS5ahPRDRrRBwDuUHoQoRHs4SyUfzpqpRzYHbuwKfNjYCIjsbFTivw Fg1e2Bs+ujpyPEE/waRg8BfIy0PguNGYtpI/LT4PC83wDlDi/nekMdVA8boakEMJ2xuv LAirvl5v1UGdslYHf0uFglk06iD7Vrv1DJa0oJEpfkgWt0NHx9JgAqtBIjwYmkSQ/2Lt KepQKIV5UKLE3k+MVhc4fBkdEeFw0wfwwpoh7MYjAOTwmz9WAAXFxbr3WznRlebKvq6W qeQyZWpf1e03RVN6ww2nazAjF3Hgel4LXjlFhz84O+vTMnWIBEt6Llq02NCVkR+QL1hx nqtw== 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=yK9EleEj0j+QwSZkwxKUGLRKwRWew9Aw2iOcxvDynJA=; fh=5bPEgbqKA/qejtQhtymNh2KnqWw8w3+Y3vE4Jghf8tc=; b=ohQnddUaAkJn8kjmiKd8C6yLVY3OATxS7IUXO4fKUHQeSlKs6nQK000LQTVMIecmAK yFbRn/ePsrQpdcibXC89scoWmtESjyPJAbQrOys/PiTuVgpj0pFuwrBUNguoPfU+M0sC QPWv41sU50AjpoLVW9KONTSDq92fnxGQQNjkyqtZMxxv1TjO0+px7SjEUX6zFaWuwCXb leWN0vdYyI+u84iVAkkdR8t5JzP8iG7aZyXNvJyA5R73MHuXEG2bQG9esBB9MWiiOBgT XurnbclVeurCg/HZJPLfaPCAzKYyUXgSslLrvjI0cnjexcZjdYw9gVc1lhgVQaLx7xvb rJIA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="mgsk6AQ/"; 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 w5-20020a1709029a8500b001b0044f186fsi1106876plp.41.2023.07.06.04.46.54; Thu, 06 Jul 2023 04:47:07 -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="mgsk6AQ/"; 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 S232394AbjGFLkC (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 07:40:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232103AbjGFLkA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 07:40:00 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20715.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::715]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F0FEAA for <linux-kernel@vger.kernel.org>; Thu, 6 Jul 2023 04:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nH6onbZ4PnehlCnqh/GHTB9p2LTWSi8DzqePV9rINQ4V2Da941YC4FrK7pPKYjpk+7BZgiR0CJ9/ts//KsIcrYWQDeLsFY/kq4N+zUbf0rOPO/E2zhB+yv4MSbrKu82X5Ohh/hstyC125NFGyutQZUZimcdhk658lzbUObIQ0FpedAG8dywsloBYsjwn8LL1rGNa7btsZfLqRsqoGcE6FLxl1X3JW+ns/WQ5cJToYBu4O2pQgntEgLNuDIHPIJ8RFqeeweH+lKN2WS14RP7GzUn+KoAUEsJIk6O1VqO6seA+8ZfAxUCTzi8o9YHF4TttaGRN/RMuyAEgNxyIBIVKdA== 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=yK9EleEj0j+QwSZkwxKUGLRKwRWew9Aw2iOcxvDynJA=; b=RSeS/OuPmq1qL5GE9G4RuD/0B/PENdiPVWEOYvSlbk4nCwR52+EtmQDRJTjbH/N5YeJopEyMVqyskunR/blEEPfgvDEk4fQnrXsaHEYJffuezVUxOjRBmaOberS2kqtfaFxlVf1JVTBafIx/O5UCR8yAJHKTO48ueiQzehL3IGg0qhw5iVEd8N1xwy25udmnvfkicoRGbz+knVIm/XkJg5mLzgH0n0Pqu7bIdzDPW+Ml/3PnK/zbKaDEG6V5XPaKHFOncFhUlhcf3gjiEZz7A5HLsqGeT/xuohhfaPIQC/F3s+INKJ73PTgZv+/VbUmvMQmbcyAPsd4bq0+ADZM9JA== 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=yK9EleEj0j+QwSZkwxKUGLRKwRWew9Aw2iOcxvDynJA=; b=mgsk6AQ/3UCKJxa1GjV7Jc+6nNpCEiQh7RmjKr5QHUedI7D2p1zClj8VAPZiQ68s+5fnCAucb7LkjIwf7tU8Z9QoVWEhb5esJFcBlQ1tbhEaDkXOUGaddTltlFg3KCr4NrnmJRRXmBiBI7PhVw/ZCOnk+i8y7AvpQeLl3tRX+oYwIEa/bdoWwA8NFcaz1DVvQQ4YzkaCfmS3ioAzRiyM/lSaAUQMf/4Z5CAe18FOnTP3mYTsCNFteOqnFEcrXXTN7Kvip8RnUqVbWYQ7x8cu+gWkW7o6k94uj1k9b4NYBTwWgAIbrm6mv8Zv4o39mjmtGD10XTBRiUW1AKFMDfZbsg== 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 SEYPR06MB5889.apcprd06.prod.outlook.com (2603:1096:101:d2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 11:39:50 +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.016; Thu, 6 Jul 2023 11:39:49 +0000 From: Yangtao Li <frank.li@vivo.com> To: Lee Jones <lee@kernel.org>, Nicolas Ferre <nicolas.ferre@microchip.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Claudiu Beznea <claudiu.beznea@microchip.com> Cc: Yangtao Li <frank.li@vivo.com>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] mfd: atmel-hlcdc: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 19:39:33 +0800 Message-Id: <20230706113939.1178-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0013.apcprd02.prod.outlook.com (2603:1096:3:17::25) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB5889:EE_ X-MS-Office365-Filtering-Correlation-Id: 27b40156-4d71-4c19-7b87-08db7e15b4a4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2wCMjNROu3ahzNKeXDoCcpHeiOR9DM850Z4K93WNkd5EzPs97dDdGtnl9PGE2siktoPz6rEgXl+BpF6AKsj8epOHs3ra2T1/A0c7QU2jJZIDPwmA8wW2pdnpibd1P4wxWxM5Hg44Knn7m9IkN8T45HVR+GtPfrP4D+eYVqiRdfSouNy6GHCEDgdNLW9cCENLCqlMqAvsohud1zz/D9UfFD1HMN4SAdNoesx011OqGKbKlfFTjmB6HafV51w5bC7Zv3AodOcL/43XNcH22+Fyhtm5R4WoGpd0TowysArN7SIn4VzM7LESi0IcdwJ8YDrsP7auRnu08Woif/jQzxpAcOy+Ghk3J4z4Lvr1VSUjta/8uF3r02FQO8xS2AS8JKZR7jNTCBhi9xm2JKtQSXsZW4dyEnMcFxkJs+6x1Lms+clwsAUqTdbCgAw9eyeG6KEJc3Irq6guUtkKyBRq83lDIlOYT064vdlzOG1yzno9QouQj6n6lOfRNzO0Dd4UqZCEQUJ90noI61I229yx+KGQB14Gu1udKjrAG2agQIgGLUlAJWwR4lR8tCmTpsiFs0l6ev6rTLuNLvibXvID6ikfMbWjaCLcFc0GnKkIXC4r2L1d/RU+3Izxo4h0wuKuCBdt 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)(346002)(376002)(396003)(366004)(39860400002)(451199021)(36756003)(86362001)(2616005)(4744005)(6512007)(6666004)(52116002)(478600001)(110136005)(2906002)(38100700002)(38350700002)(26005)(186003)(1076003)(6506007)(41300700001)(8676002)(5660300002)(6486002)(66556008)(66476007)(66946007)(8936002)(4326008)(83380400001)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TQud9WsfRnDFb7mKrYPPkPUBKKVYUqRWmrLyM/AIkQXTFWu5IIKrLDEYCuHMb/tnr7MAMCwI5mgrTzjFrKbfxAygPEZx948cbhW9gJUFfX1iluTgotcKnat8SUISSrzBaZ3KCRVlbZMWhCjBf1WRRPiUFdWL7VtYp/WvhRB6NMwaDNiz47y08c/UBTza+CzVpcnQetzjKVbfTRRkwMpp5QMm48sConrU0NeaHt91QZeCTAC+5mDKxf+btl6NnfVtWHvTfRxik5rgniyq3iNd4tACMTmdn06iQt1i4XYY/kBuvBuzNfs/zg7/My+WaGgZ+jYa07rC6rP6Jj27TDvYp49t2zF8kjdUFx8XbsZTaNwq8fd1fYRxOStcSc7mJFh7rVPwUqdvIM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arXhErs7pbJTQAEIvUJk3YOMaAPKxL1WghDvLrsbFdI/906kSCxDZUWV35WTnbyvKvQSB58xmI6f9fMcqnZuPyF+On+U0amuL7LlaEStWqWmq8vKNlrNL3SXp X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 27b40156-4d71-4c19-7b87-08db7e15b4a4 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 11:39:49.5792 (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: wH9WPLaWbQPl3Tb36aHnEwy90g41z8bYXqNSpzQVNDdszXMhn2/Igo2Icz25Tfw00e414f7Aj+UcFHJf0+RZAw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5889 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770671600201088105?= X-GMAIL-MSGID: =?utf-8?q?1770671600201088105?= |
Series |
[1/7] mfd: atmel-hlcdc: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 6, 2023, 11:39 a.m. UTC
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/mfd/atmel-hlcdc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Comments
On Thu, 06 Jul 2023, Yangtao Li wrote: > Use devm_platform_ioremap_resource() to simplify code. > > Signed-off-by: Yangtao Li <frank.li@vivo.com> > --- > drivers/mfd/atmel-hlcdc.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Applied, thanks
diff --git a/drivers/mfd/atmel-hlcdc.c b/drivers/mfd/atmel-hlcdc.c index 3c2414ba4b01..20de7f49a830 100644 --- a/drivers/mfd/atmel-hlcdc.c +++ b/drivers/mfd/atmel-hlcdc.c @@ -83,7 +83,6 @@ static int atmel_hlcdc_probe(struct platform_device *pdev) struct atmel_hlcdc_regmap *hregmap; struct device *dev = &pdev->dev; struct atmel_hlcdc *hlcdc; - struct resource *res; hregmap = devm_kzalloc(dev, sizeof(*hregmap), GFP_KERNEL); if (!hregmap) @@ -93,8 +92,7 @@ static int atmel_hlcdc_probe(struct platform_device *pdev) if (!hlcdc) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hregmap->regs = devm_ioremap_resource(dev, res); + hregmap->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(hregmap->regs)) return PTR_ERR(hregmap->regs);