Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2797741ybz; Sun, 3 May 2020 09:31:26 -0700 (PDT) X-Google-Smtp-Source: APiQypLOA4BbstfmsKy/erNGPJBSFa+8TNAx9vSX906bZwtF3tI/b3vpC/HFqo7b1QerxTgo5Occ X-Received: by 2002:a05:6402:14ce:: with SMTP id f14mr11375225edx.244.1588523486427; Sun, 03 May 2020 09:31:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588523486; cv=none; d=google.com; s=arc-20160816; b=wXnuqaOaEtEvjIbtqYh5pTt2AYy+deQOGo2HRnQadQEvG2tNY2krcefXV3IRQt4xqK +7PYGwL8HsV7iIWoctLCkqsHXbcriHohNCv3T7J9zQd/5x5hMiKFUGGwTxGHLS/t5kCR S3ayNud+HjgJd2A3iCG6wB/pqVDn8fE5vakXctWj804KKiPZSqy3TlqlKqDmU6OfEM6n DLoo6HvPtiJj4W13H04XYh++Nh9W2jD4af947RQ7CAq2jGMkw5wlM6PJ7kMDfjCuZTO2 wX7GzSQ+D4czVyCH/gx4J/KpDq1wT8PHqBVOzGCr3hkIeoRTd47AQ049oDmKxZ9eUQKA Kp4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=iZTD9lcM0rAIpS9Q2/unRVD2X5uHHoJ1vWLTkD3cRHU=; b=A7t35oRXW/Z46P18Aa6IEztcZsfb6XsfjwtDoQyzxidAfwDK+ZVCDhkQ+rYcixXFk+ zAByNoP6D7hRYwejZnO75Y3//u2c6aqDCv7e8wfxmttIaOipnqnpLx4kP/UfdZ/GrPgT plxtdonKCMIUfVzkRnq/6Sk2om0178Z6Z3Qiu2Tuf2q07K+FDJZZzAyw1y89hnWSRkuE NaIgDU3X0vSII8bLFOjbpy0ucYk4rqd5p7PZ3kdl3wvuqCxNOjWRWChnCQ6u+HlQusPQ 8wBhwBGLwq5rFDzbQCjzNoE4P9jJrn16bOTZ3c8DneZjAbmnA53IB6PAjdM5GDRLFTG4 eziw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BUSL5ycz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce16si5924418ejc.526.2020.05.03.09.30.53; Sun, 03 May 2020 09:31:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BUSL5ycz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728853AbgECQ2U (ORCPT + 99 others); Sun, 3 May 2020 12:28:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728002AbgECQ2T (ORCPT ); Sun, 3 May 2020 12:28:19 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7514C061A0E; Sun, 3 May 2020 09:28:19 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id y25so4335949pfn.5; Sun, 03 May 2020 09:28:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iZTD9lcM0rAIpS9Q2/unRVD2X5uHHoJ1vWLTkD3cRHU=; b=BUSL5yczeY4itv53cb6Mv1bbJIFySaRaAroSQkMAs7JozqBqxGi+f1O4arCgeWUT5d s9uH+GhrvdJZ5V+pJrTmicCT0NXMFNeULIcyEi1oF8rP6cWKsvEiBY9o6oRDd6Fm9w6I 43whgA2Kk2ZEbjd07tR4LUNN9mDVoAM3EGNWbJDXChCT9nHyboWSSjP4wAv//1A9Acy1 A9uuKLJXyeqpRM+OL4Rc5HgNbQ16hGG1y0HIWJUFRY9WY2NLXYy6DLaGS6h0PoB3jQbq 5kqag/RUY8zkiMTEg792r10fwSpUBzIydDCB4utO9GSDnjsxz4JIDUz/APD23bxg2zQG 6QMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iZTD9lcM0rAIpS9Q2/unRVD2X5uHHoJ1vWLTkD3cRHU=; b=IgzAA24sygSgWySweT3aGnFIKzUR4rVLqz8NaXm+zkm7ftfiHrCcvz9AOD+BRxsnOd +ZIR87/FP6DkHzRwPPE+ZNad7NvzWB6wP4AOGRlq/Qt9ohOaxzJGihx6/cSPeFVgcT0Y E0HTefw5/GfwAjGTN76gwpGK/p9aQf/jigcLR2oGZz64XuJJBHsjZrU2dfxhUsV47aGu MVAm5HarLTvzwtKL/rGx2zfDtLPNhmn/TCdX0sKGrTND5G7BjCpPPff3jiV2LWlKLQI6 r9b0zfKHPxZfB8jPeVNTk5QHtRy/P5UEhv/PcWgV1CE0x8ttjKZ+uiAZboS6nsuDHPov 9+Bw== X-Gm-Message-State: AGi0PubODyf4F13f11Gh2M7s6de0mPNtsD75xcZ3iPCxlPubQdbCxz8W 9DoeVfXjetCXohJgO7VPdwzQ3+VPcRBFv3ZaennuiLak X-Received: by 2002:a62:5ec7:: with SMTP id s190mr13164523pfb.130.1588523299414; Sun, 03 May 2020 09:28:19 -0700 (PDT) MIME-Version: 1.0 References: <20200503131021.16575-1-aishwaryarj100@gmail.com> In-Reply-To: <20200503131021.16575-1-aishwaryarj100@gmail.com> From: Andy Shevchenko Date: Sun, 3 May 2020 19:28:07 +0300 Message-ID: Subject: Re: [PATCH] i2c: img-scb: Use devm_platform_ioremap_resource and remove superfluous error message. To: Aishwarya Ramakrishnan Cc: Brendan Higgins , Thor Thayer , Kate Stewart , Allison Randal , Andy Shevchenko , Thomas Gleixner , linux-i2c , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 3, 2020 at 4:13 PM Aishwarya Ramakrishnan wrote: > > Use the helper function that wraps the calls to > platform_get_resource() and devm_ioremap_resource() > together. > > The function platform_get_irq can log an error by itself. > Omit a redundant message for exception handling in the > calling function. > > Suggested by coccinelle. Should be two patches, each of which with an explanation given. (And of course you have to mention after cutter line '---' what kind of tests you performed?) -- With Best Regards, Andy Shevchenko