Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3853296pxt; Tue, 10 Aug 2021 12:57:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAFZcnQtzZrYL7ze4hCd9sPYRChvFmbL+ZXQecFt/XZGRSLSH/0hM5ZMc5br1jlBZ2ln+n X-Received: by 2002:a92:a30a:: with SMTP id a10mr128399ili.219.1628625449086; Tue, 10 Aug 2021 12:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628625449; cv=none; d=google.com; s=arc-20160816; b=oL9slqxD0XK6GBdeyo3ccTgDq9COHLp6YRsahBa8kUFhf5ldq9EMXJcA0/COsD5wtq UIVqTPn4FjgatnhaZtXgK1SRoTcCsRqKevbC060iEqFkvMmXPN00QekDZogatZ+vJtpD cMRWGGgX1fcf65SrjuYHHYQFIR9AQR7cI1ZgCW+QNGgon9bmy6srdNIBaQ2lNqKGmI3h y+x76K284fvi3Z+Y4CYcPo69DXFr90ygiV+Yrb05l7hkxAZPvsrjQ9cxEqZYtbYbztWK zxarQs8je2j8c9LPCNIeUBwxx+s0hzASDP5cbaQql6xms+JuI7wSau24MiHWsaslb1MB YcqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=O/j6nJ0B+kt+FPNV9uDLOFseO7eqExy2LCXzZeR9upk=; b=PMQYga06md3aVuA4m39tYZYrmfXqdRde8GixoA6LRJc4Lrt2pUWPDG4bcxYUxQmK6p xm0u3fnmUa0wroz3Z4tRF+3bJione3yigk/U43m60SjTetZtD/HcHnAF8fdmnRHgGvr4 U1gyFf5H/QmPqZTOENs0MCf7em00gyoaIY1fC1ylQs4IswCBUd2NLZVqHrHrMmtt4oGi glqU4827yUVPu4gOo8ofUsryCve123VIQX4kjvSnl+IXxATvpozLkY+KpYjMhU4yk6Pz oP/EtNmbU9AMTUkKs/WpTIMjMbUaYjkUaTaFdMjKNGUqCdmEHmMMrLuOGNMDzsyBrtiL e3Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ogUh0JUy; 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 q7si18654246ilt.27.2021.08.10.12.57.17; Tue, 10 Aug 2021 12:57:29 -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=ogUh0JUy; 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 S232256AbhHJT4m (ORCPT + 99 others); Tue, 10 Aug 2021 15:56:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230077AbhHJT4l (ORCPT ); Tue, 10 Aug 2021 15:56:41 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88D29C0613C1; Tue, 10 Aug 2021 12:56:19 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id l11so11155821plk.6; Tue, 10 Aug 2021 12:56: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=O/j6nJ0B+kt+FPNV9uDLOFseO7eqExy2LCXzZeR9upk=; b=ogUh0JUyREhosEeVYeXwQDP707P1FsYPiK+cJyGzmmFluA+i8uiJiJ/PnVkavM2Q8B aeNegKcPTRHzYRlhMALFCtDTtI6tICFYLx9x7aPWT3/pRBR0zp2NY6wR6AmzWL0WnvGp KrULQMvqwgJcLWYJkKrqJY793KSthEDkD842ItyXZTEcfxsenwZOpx2+s+fCZH1DaeWB UzHBMFXulbVj/XWUB4dfUUyopGwKvjyygdNQJuxVEReQ7pX2xS2GdlUOH1gRo/ghafXm bH5m6rjIWqWyuuiNIKUeBEDTdz0fl+bHedmjiad77RSuRsa/pSk7eIwUDo8sd8BEsnzb lm5Q== 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=O/j6nJ0B+kt+FPNV9uDLOFseO7eqExy2LCXzZeR9upk=; b=irTNJZEyynsOVVix1G3uDBNFy6MLVT06RwNEIMuVNmtQPk70/AlsNgOvYn1VOoz7AS QjNM0ONK0X711q3SqDZczjM4MNN44KQeDpMq6BZ2uxy3xuCtLTIm0w3RZRHIuCE0dyj1 RVVawddnvx+65lAZEh8caSsDNuldV/NS7JrQmft6alMwd7E12PMt0Wqu7bdH3HJifW9K fkogk/CIYdbzdjv2q5HCCyj7MyBFLcwcKQcCl2S03SWte0pHFYbF/+53AF00fFEjR03a CrCfWjaMDNp2uqOqfkb2G0oLLpsIdjlnYOtF2cP+28Ix7+mUrugSlMBq9PThwm76LT6w WOkQ== X-Gm-Message-State: AOAM5320G1I0ET/tpoQiXjstO5f2cRVG6Q1tU/JK4aXN99OgWB1BdqdU MrdVApumReVlPvNn/T6s3IogjkzYeZ85mtv4Mm8= X-Received: by 2002:a17:902:e786:b029:12d:2a7:365f with SMTP id cp6-20020a170902e786b029012d02a7365fmr1147639plb.21.1628625378803; Tue, 10 Aug 2021 12:56:18 -0700 (PDT) MIME-Version: 1.0 References: <20210808015659.2955443-1-liambeguin@gmail.com> <20210808015659.2955443-4-liambeguin@gmail.com> <20210808173630.5c384a4b@jic23-huawei> In-Reply-To: From: Andy Shevchenko Date: Tue, 10 Aug 2021 22:55:42 +0300 Message-ID: Subject: Re: [PATCH v5 3/5] iio: adc: ad7949: add support for internal vref To: Liam Beguin Cc: Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Charles-Antoine Couret , =?UTF-8?B?TnVubyBTw6E=?= , Linux Kernel Mailing List , linux-iio , devicetree , Rob Herring Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10, 2021 at 10:46 PM Liam Beguin wrote: > On Tue Aug 10, 2021 at 8:15 AM EDT, Andy Shevchenko wrote: > > On Mon, Aug 9, 2021 at 1:50 AM Liam Beguin wrote: > > > On Sun Aug 8, 2021 at 12:36 PM EDT, Jonathan Cameron wrote: > > > > On Sat, 7 Aug 2021 21:56:57 -0400 > > > ret = fwnode_property_read_u32(child, "adi,internal-ref-microvolt", &tmp); > > > if (ret == -EINVAL && mode & AD7949_CFG_VAL_REF_EXTERNAL) { > > > continue; > > > > > } else if (ret < 0) { > > Side note, redundant 'else' > > Are you asking to add an 'else' statement? > > because, unless I'm mistaken, in this case ret can have other negative values > that we want to catch with this 'else if'. You lost me, I have no idea what "to add" and "other" mean here. No, I asked to remove it. It's redundant. > > > dev_err(dev, "invalid voltage reference in %pfw\n", child); > > > fwnode_handle_put(child); > > > return ret; > > > } -- With Best Regards, Andy Shevchenko