Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37273812rwd; Tue, 11 Jul 2023 11:51:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlHaFQw/JGPjBtiWDFAwjYdhoYf5A+SogVnkeG1FCgDZj/IZnaTyGFE7tO1jTEQSw5IPJr6T X-Received: by 2002:a19:6504:0:b0:4fb:8b78:4a93 with SMTP id z4-20020a196504000000b004fb8b784a93mr9484564lfb.7.1689101468112; Tue, 11 Jul 2023 11:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689101468; cv=none; d=google.com; s=arc-20160816; b=REEnBgVMwEvp3kN26HXusI7PYnyviQcUUCD4Si1CfhBQOr2QCgaS3+ppmSpeQ642wl FVsNa66zHnEDSLbQm/0SJur/2aNGMw0JIzZm8hL7btpHM3Hd8s4wcxKWEZTRePlN97FT S/kO5aLbSrzsNEgZ5MjiyTdJf9z4SXC+iayIFxSrrv77hVDU7hwwXqPWAurZQ4TfnuR7 U33C0G7Vqsm6VCM/w/GPvvQ6FXtPN+Y7Iktiyd2fwr0JMKSzbSljDxaZj1Jztc3ZosAv 4RHJsNBdJ7xLNIsVOt2lYW8Ny6wejFf4urxh2ZbkMmsX31ZHaVIg+JjeoyOXPiXhNVD6 b1qA== 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 :dkim-signature; bh=wlSVz2JK2QfkUY0e2bO341IdHytAGDY8Oy/1arX04Ks=; fh=+lqBJLj+WBmZn00S6z6EXxQaZMBLGCKdU/UHkroYnlQ=; b=RmIxiFR7ii5DHNz75qiFmzPNvPp9rBgrmNDm9VLiXVm1StgesFnVCSSp7VF6ap5/+0 32TG2Hjj7SgJzfuKwGhoqKJMaMJRGQMUED/yvXktkk7DLtOLpiWmpCfiN4q9QOreIiR6 wIrHlzSo+0ObHBvx11bi1Kf8lhdymabuxeT7W9ZXAPlvVyzdoSkIWPfzmkAYAEUSOmQC A81ixdwMuAo+FrHtNESO/9LVXPNtYLeKiFwTO8OBbpT8iLqO6tsnj/uTdhM+dMQJv1h+ k+hpP7alCvUQkvpwF8S1asYLW4WVtVSz9qg20dXCRUXFduTvoQGIpYvywVZlc4F75QsS aHnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Du4yrT1O; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a05640208c500b0051e00748772si2658304edz.619.2023.07.11.11.50.41; Tue, 11 Jul 2023 11:51:08 -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=@gmail.com header.s=20221208 header.b=Du4yrT1O; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232191AbjGKS0W (ORCPT + 99 others); Tue, 11 Jul 2023 14:26:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231790AbjGKS0V (ORCPT ); Tue, 11 Jul 2023 14:26:21 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB360A7 for ; Tue, 11 Jul 2023 11:26:20 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fbef8ad9bbso66566865e9.0 for ; Tue, 11 Jul 2023 11:26:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689099979; x=1691691979; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wlSVz2JK2QfkUY0e2bO341IdHytAGDY8Oy/1arX04Ks=; b=Du4yrT1OOMvuNNcTOYTMkOYQldDuwK7MDHA5+YhI60s8yycZT83WcHqIY+gnPmrUuX u3WG+SMRBLq7Mu2ASaiKqhgJtNtaUGXsKTSkGgAQ4BT69a2uAi2zRh2ECNm2MGiXqE9i qN8UdMgXuZdLymoKCZu2wUZYsYhGOUX66kAYKYmkfcwdIDYWoVctkeB+vK5uoTQB40dO YstqAzy+YnFj+E3Y1sELlIuOnggqRzQbKGxESNW9IQokRA0aKFgvUeZCCH+u0tUf5RXC CKTT06i5EWIDhJPryjee3z0MJF3syi4u2Jxls9Z7W6/gw9eyfF22koy7JtFpt3a8jRzy laZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689099979; x=1691691979; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wlSVz2JK2QfkUY0e2bO341IdHytAGDY8Oy/1arX04Ks=; b=j6EI5iQ0krfvTAEEoHrT+/eP1PJ1Su1g7XndCRZbzvFdvGyaxEJ/8xpFVoMdMqEVcn s+gMMp4c49DPqNznSfjQr0+KRwMH5rNIFcc0uYhlG1ZV3norm/tH9MYMVY2XI/s9p23y pfm43xR547LDGaRRKWOO8tx0qwIk/lnzfpqfcxwBVd75OaMNtiDBAiKuVc091Eik2/9i sH8L5aMRrexZ0IbgoIUk6Tnhx9XzK5HzoVaXtLlSZvlQ1q6TvJB8MVF756hWb1b7ilvs NCwP6U7yCzVz4qGsAja6pV6kLv4jV+5B7lvGFIsOcRx+qhEC4hL09HYCrRtDYVgROX66 Oy4w== X-Gm-Message-State: ABy/qLb9wmGoz9WrJsSMPaEZ2HqZMOjyPnk9XpI90hzZ6j6orR0q2i38 HJmhmIt6G4zxTwNM/3eB7oA= X-Received: by 2002:a05:600c:b45:b0:3f7:b1df:26d with SMTP id k5-20020a05600c0b4500b003f7b1df026dmr17826544wmr.38.1689099979101; Tue, 11 Jul 2023 11:26:19 -0700 (PDT) Received: from jernej-laptop.localnet (82-149-1-233.dynamic.telemach.net. [82.149.1.233]) by smtp.gmail.com with ESMTPSA id q21-20020a7bce95000000b003fc06169abdsm3214211wmj.2.2023.07.11.11.26.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 11:26:18 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Srinivas Kandagatla , Chen-Yu Tsai , Samuel Holland , Yangtao Li Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/8] nvmem: sunxi_sid: Convert to devm_platform_ioremap_resource() Date: Tue, 11 Jul 2023 20:26:17 +0200 Message-ID: <3747576.kQq0lBPeGt@jernej-laptop> In-Reply-To: <20230706040504.34057-1-frank.li@vivo.com> References: <20230706040504.34057-1-frank.li@vivo.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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: X-Mailing-List: linux-kernel@vger.kernel.org Dne =C4=8Detrtek, 06. julij 2023 ob 06:04:57 CEST je Yangtao Li napisal(a): > Use devm_platform_ioremap_resource() to simplify code. >=20 > Signed-off-by: Yangtao Li Acked-by: Jernej Skrabec Best regards, Jernej > --- > drivers/nvmem/sunxi_sid.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) >=20 > diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c > index a970f1741cc6..6bfe02ab169a 100644 > --- a/drivers/nvmem/sunxi_sid.c > +++ b/drivers/nvmem/sunxi_sid.c > @@ -125,7 +125,6 @@ static int sun8i_sid_read_by_reg(void *context, unsig= ned > int offset, static int sunxi_sid_probe(struct platform_device *pdev) > { > struct device *dev =3D &pdev->dev; > - struct resource *res; > struct nvmem_config *nvmem_cfg; > struct nvmem_device *nvmem; > struct sunxi_sid *sid; > @@ -142,8 +141,7 @@ static int sunxi_sid_probe(struct platform_device *pd= ev) > return -EINVAL; > sid->value_offset =3D cfg->value_offset; >=20 > - res =3D platform_get_resource(pdev, IORESOURCE_MEM, 0); > - sid->base =3D devm_ioremap_resource(dev, res); > + sid->base =3D devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(sid->base)) > return PTR_ERR(sid->base);