Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1062754imw; Tue, 5 Jul 2022 03:10:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vxK/tA02vyMUtpfl0J9pPq0jGlAnSeehQj4zUzRuqbMxX+U2uvZAHd/evmZqjQswE2IUXx X-Received: by 2002:a17:90a:408f:b0:1e3:23a:2370 with SMTP id l15-20020a17090a408f00b001e3023a2370mr40617886pjg.84.1657015807999; Tue, 05 Jul 2022 03:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657015807; cv=none; d=google.com; s=arc-20160816; b=olrafFIXQddzyfHjJlZi+mZMs9FupWxi1npHq/rGMYIYw8Iy0xfHLdx28IITmlatHX NSsxaiAvXUbT+ZrACfdJuYoRfaWN6Aieg3YiZM1m/7ts4ZmOaVXosKqXqsHk7mifQhJv uuDavTJXAYPTE7LaP6ACQd8APncurT2LVGKZzJvHNoMsBC8tXY/E01mWucsBnMINqkvD Aop+zDz2VTcZ8mirxV0g+BKTEj0c8eOco4uw3i1DBDdVTg3LjxEU5QRcGGz6A/MKlB8m 5pMYqvTN7Kn7UdYLDSEIE+i2Arp8b46yM5/xUwNd0RnVf+Gr5SLhrrnseXaKf8JmuH22 em4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9c2zH5Ka/eXErCWc9OAeEIYZxxfn0kGsAuxHLmR0MwM=; b=GpL2sV/M1CGRYX8H4AOKHch7mtfOkWTdfu/XbvirWqFtOTInTQ4mQ+H1gkowFKBsoD TTPkPreSUHBlK+W8cMcX2PQW84iv6RUsheY8TjKxu1ndBCkUBPqP3Ub+TcMN4LfKHYm7 cHv5KZvpvl24qtzQmxA0cNYHYmX+a2k1GSMftzsQEXtz3WWIeQM9I4MqDuUDW6ecUKke 1GWPVxvdD/QnmvTp2CUqK0Lce8pa1E29i5SztWVPT8WLdf9CmBMhcOt04GhOf5Q9lOfr Jcog1uv6UekB4tPyGmJb0r9qsYj8YxiyOEB2xNFxBwsv+fXPu2H+wl9jqN7MA64fp28a JMdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JgKFYwGL; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 4-20020a630604000000b0040ded5db6a4si17315689pgg.552.2022.07.05.03.09.54; Tue, 05 Jul 2022 03:10: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=@linaro.org header.s=google header.b=JgKFYwGL; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230057AbiGEJkH (ORCPT + 99 others); Tue, 5 Jul 2022 05:40:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbiGEJkF (ORCPT ); Tue, 5 Jul 2022 05:40:05 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 729A3764C for ; Tue, 5 Jul 2022 02:40:03 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id s1so16688491wra.9 for ; Tue, 05 Jul 2022 02:40:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=9c2zH5Ka/eXErCWc9OAeEIYZxxfn0kGsAuxHLmR0MwM=; b=JgKFYwGLb3WNTsHz51CqAdXff9PBIjZy1XgPLck66brhFctZtsLIz6DFizileE81G2 8P3FfHIKhBLoA/m29D3sZ3Trz2e6aVHPTFkTWqrQWjW+LaJWXSnRDuxB4gyXVLpj0jOp QUoMYZgewPvFyRdEEVooGycGJlEfaFrDXaObXWg/dyjhrExDYj62FCXwGYnJ6oXq88J1 VTgD2K3cAYZIleQDTNC+LNQZzPpK961y2973ljjQ+A7G9N9ym5imrEQIejg2T0lwQPeY 61ycT2gtQTh8WYdiPclhstQX4chVB5CgDZOciBK9cJ7a31e1zyuel3aSl5lsowLAqda+ t95A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=9c2zH5Ka/eXErCWc9OAeEIYZxxfn0kGsAuxHLmR0MwM=; b=FO47HsT69LvL7S9jQDzsHLjyXH9PTxA0bnZ7AcFC9wDVEEjF0/O2+Mv7mCnnLmIyYm pA3BdOZ7EI+2h+oIWPCCCcJnyCHuzhS+TNdD0jMCWtTzqyIsf+gOIIqiQMKZybAYYG9N jiZsA8R6NwoVa9qZVM/BOBq4xkPEdVmvuDTKtcMiUdVT1il0JGx2RUKXxqIZ/ye1jlzb 6GLWRY5LRXNkvA7B4HDl/d+aFn1UJkpjE7nrkooUUj/aZnFfzJT5g6UrFtlJgarLtEUr TBuGCwZ6kahGVzbUIIAFizzQNRXJY4Ry9cH8keqne6og7pz4jKta05/fYEd4ewV2Dc4q QEJw== X-Gm-Message-State: AJIora8d8ugYHbYFqgrvmWFMVCBrSDBBnHBeIrWBPWw/LUKYurCYhzty u1U23sMfp0uYJmuRyRq38OTKQ5gLFi0Q8lUT X-Received: by 2002:a5d:598e:0:b0:21d:3f55:47a8 with SMTP id n14-20020a5d598e000000b0021d3f5547a8mr25273650wri.409.1657014002013; Tue, 05 Jul 2022 02:40:02 -0700 (PDT) Received: from [192.168.86.238] (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.googlemail.com with ESMTPSA id l20-20020a05600c1d1400b0039c4ba160absm21129871wms.2.2022.07.05.02.40.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Jul 2022 02:40:01 -0700 (PDT) Message-ID: <8e278e36-c31b-b2bd-9cab-01bc940bcd44@linaro.org> Date: Tue, 5 Jul 2022 10:40:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] nvmem: mtk-efuse: Simplify with devm_platform_get_and_ioremap_resource() Content-Language: en-US To: AngeloGioacchino Del Regno Cc: matthias.bgg@gmail.com, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220623121558.107400-1-angelogioacchino.delregno@collabora.com> From: Srinivas Kandagatla In-Reply-To: <20220623121558.107400-1-angelogioacchino.delregno@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 On 23/06/2022 13:15, AngeloGioacchino Del Regno 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. > > No functional changes. > > Signed-off-by: AngeloGioacchino Del Regno > --- Applied thanks, --srini > drivers/nvmem/mtk-efuse.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/nvmem/mtk-efuse.c b/drivers/nvmem/mtk-efuse.c > index e9a375dd84af..a08e0aedd21c 100644 > --- a/drivers/nvmem/mtk-efuse.c > +++ b/drivers/nvmem/mtk-efuse.c > @@ -41,8 +41,7 @@ static int mtk_efuse_probe(struct platform_device *pdev) > if (!priv) > return -ENOMEM; > > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - priv->base = devm_ioremap_resource(dev, res); > + priv->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); > if (IS_ERR(priv->base)) > return PTR_ERR(priv->base); >