From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laxman Dewangan Subject: Re: [PATCH v3 4/6] gpio: max77620: Don't shadow error code of platform_get_irq() Date: Thu, 9 Jul 2020 20:31:44 +0530 Message-ID: References: <20200708202355.28507-1-digetx@gmail.com> <20200708202355.28507-5-digetx@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20200708202355.28507-5-digetx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Bartosz Golaszewski , Linus Walleij , Andy Shevchenko Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-tegra@vger.kernel.org On Thursday 09 July 2020 01:53 AM, Dmitry Osipenko wrote: > External email: Use caution opening links or attachments > > > The platform_get_irq() returns a positive interrupt number on success and > negative error code on failure (zero shouldn't ever happen in practice, it > would produce a noisy warning). Hence let's return the error code directly > instead of overriding it with -ENODEV. > > Suggested-by: Andy Shevchenko > Signed-off-by: Dmitry Osipenko > Looks good to me. Acked-by: Laxman Dewangan From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8E25C433E2 for ; Thu, 9 Jul 2020 15:02:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A554820720 for ; Thu, 9 Jul 2020 15:02:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="dQtMXWTM" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726575AbgGIPCV (ORCPT ); Thu, 9 Jul 2020 11:02:21 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:7391 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbgGIPCU (ORCPT ); Thu, 9 Jul 2020 11:02:20 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 09 Jul 2020 08:00:32 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Thu, 09 Jul 2020 08:02:20 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Thu, 09 Jul 2020 08:02:20 -0700 Received: from [10.19.64.157] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 9 Jul 2020 15:02:17 +0000 Subject: Re: [PATCH v3 4/6] gpio: max77620: Don't shadow error code of platform_get_irq() To: Dmitry Osipenko , Thierry Reding , Jonathan Hunter , "Bartosz Golaszewski" , Linus Walleij , Andy Shevchenko References: <20200708202355.28507-1-digetx@gmail.com> <20200708202355.28507-5-digetx@gmail.com> CC: , , From: Laxman Dewangan Message-ID: Date: Thu, 9 Jul 2020 20:31:44 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20200708202355.28507-5-digetx@gmail.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1594306832; bh=uX/ItJJp3vriWyJ6cOJHy+oYPRDihkGd3SI13+jjRXg=; h=X-PGP-Universal:Subject:To:References:CC:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Transfer-Encoding; b=dQtMXWTMv2FO7iWwF+V3o5h0aZeE+h4GdBau0GNNd8uPt1UqUazMhhuBNv8xZGbH1 p6axpQ2AV1WGhPSgYpGfO5tQgi15DZRQaatC6y9aJU0M3q22r4NRc6P2Xr44lpB/eW hDEsb2S8ZqDdHt7HEsFV6ayeaYiovTeJBI7hZ+lgDJNPfbnUG6E8NbbkfMZWjVfnV4 5nOJdlxtXLQXzOXpu4aSzO+eBDvOPrJN/1M5YR0m5FC0RYJAC7lZFBM4zHOGah77BW RIMdpcdfFj4pHQLo3POLw2t5NAI6LVhnh+7PlpCxZgRYC1RtexhQatj+WAi5P8YugW 2IoFkouU27bmw== Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Thursday 09 July 2020 01:53 AM, Dmitry Osipenko wrote: > External email: Use caution opening links or attachments > > > The platform_get_irq() returns a positive interrupt number on success and > negative error code on failure (zero shouldn't ever happen in practice, it > would produce a noisy warning). Hence let's return the error code directly > instead of overriding it with -ENODEV. > > Suggested-by: Andy Shevchenko > Signed-off-by: Dmitry Osipenko > Looks good to me. Acked-by: Laxman Dewangan