Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2128170pxb; Wed, 9 Feb 2022 11:25:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLPzr9n7A4XunLB4w7wKs/q0frzwkJvu4aKbpPGmXKSDh7HyTLtrwkuoYHiBMUHCne7wpO X-Received: by 2002:a17:903:41ce:: with SMTP id u14mr2510143ple.49.1644434740894; Wed, 09 Feb 2022 11:25:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644434740; cv=none; d=google.com; s=arc-20160816; b=BEAWPdRRmEzRJRoC8/aFcw4EOgoLerK9psU2zJfDKNoPISIF++uBKDbXVUZBZCF1yl LtbnGJOpKFYt/92KgPHsXPubdCY80KGXQvFTSzQC0rlNHvMFJxqWS5uwPc9VmUewfTQh 9Hx07+twEYWlZt55kTtdf4hI893P9ccw9EEhMkF+t1gZzfRbH43kerEMqGTx3f040+Sb W0qhdo8sX4k6vvWokpGCZ/adRI0LVpDBHv9dx56k8l3Wa242c6AwBmkdcRx14OHMaYB7 a6ai7jNuk7dp4N9ne2jp6OW8L0yZEW6fEfKiKNgXpQTKbBR1qbRdtMw1Hnx/oawHfAa+ cm5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VIQd4zPChyzCUCXWagCLUCs42aJXJ04YlLh4elTWbTg=; b=NtQjgxMmqSjGDj4zCg5uc37aPLjEiOZiOFvrmJSDTePtZZ6sA/vDj7a2RR/RMpsW2X A5kuiV1un4SZXsZzm661wR6uux2GUsUo5DXhLU5t38iLyG8V6rhV6n4kVKBmuWVXM7Yy E/hqJ1ezm/zD7NGPP85p8ZFNalWNMDFPoZP+aDsb+TrYdiJExERpazozoUUEchoqt8pb 7BoA8i2a4YmbhMFuBdUQdics48zbA9R5FwwFjaQR1rrQtUxM9hPOcW0XfIbmUrDul/UA DR0919bWNr91KC20NIrZLJ0uuXL7GPk/nP4aEi46vVj6muFWGvHhZntdtBCpW9txzKpy sR3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Zcku7i3l; 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 j5si6885229plh.604.2022.02.09.11.25.28; Wed, 09 Feb 2022 11:25:40 -0800 (PST) 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=20210112 header.b=Zcku7i3l; 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 S234888AbiBIQf7 (ORCPT + 99 others); Wed, 9 Feb 2022 11:35:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237244AbiBIQfw (ORCPT ); Wed, 9 Feb 2022 11:35:52 -0500 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE1A6C0613C9; Wed, 9 Feb 2022 08:35:53 -0800 (PST) Received: by mail-qt1-x82d.google.com with SMTP id y8so2254421qtn.8; Wed, 09 Feb 2022 08:35:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=VIQd4zPChyzCUCXWagCLUCs42aJXJ04YlLh4elTWbTg=; b=Zcku7i3lXjZOuAom/GOkwZhqovFOc7qJd4cMsGYlvFaBYaT/XylJBapHFNs6JfhQfZ nO6xUPiMclr6P3wSv4A9CyceOZTBDaMDDd7XqoEAlt8Blihl1cu51DvAcPUzzlVrGG31 qGJOGc1VizsZk+Bzy677E/6o3vlAdO774YFyacjiSzwhE01YYshEFCZZ7beqW5asAmxZ EJMbY2SYzEa4jpe/LqI0vhAt5/TCiJmgG5dyHp8YDwlT6Gwdgiurh+n+WXIbL42jaWRT N7NEUh/+nolJvlvXxVTltMrIOikbma2fvnXgKWVxQcham9OJ0rSe/j2yJiFmPoK7NoR/ 51Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=VIQd4zPChyzCUCXWagCLUCs42aJXJ04YlLh4elTWbTg=; b=7FMSMlznUdMj9PbRNsppXl3vEBT5zVJCDvL1JdIE1hcDShYVcH8gGfWfPoeq5Ckvcd 2QzqAsPNBeip5y0VjythdMPo2h8y/tNTtqaPuWdI3Qw7xFeG7q7E+mJyIP3ZVDIxxvsY nTs997zpP8VsiPDpF8tlZUQkWxHKkyYbEjxGkjVXiwis+cVtyZMmgyd9lCVUJMQ8anPU W9R9xXiFXdJgLHLe/rqtJ/CwFyGXUgIyoNJMThOpp9MKIlYq3x540teU+y6ltBHdI5lr dtdo3OhaEiCONKMnhYlXf+GLt9mEott8N+ZibF4zPt1B5a8NRYnRCThIWQzKRcNov7Jm RUkQ== X-Gm-Message-State: AOAM530Fl8mtZIsNxCPzNmFfzqDXS9ZXH5SFpYSyD/+z7F1gh/tU+3w9 8qS0WpFymH2cqQUb2XwpD/JqIuEBQjg= X-Received: by 2002:a05:622a:1313:: with SMTP id v19mr1924456qtk.219.1644424553009; Wed, 09 Feb 2022 08:35:53 -0800 (PST) Received: from shaak (modemcable055.92-163-184.mc.videotron.ca. [184.163.92.55]) by smtp.gmail.com with ESMTPSA id x18sm9395050qta.57.2022.02.09.08.35.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 08:35:52 -0800 (PST) Date: Wed, 9 Feb 2022 11:35:50 -0500 From: Liam Beguin To: Andy Shevchenko Cc: Peter Rosin , Jonathan Cameron , Lars-Peter Clausen , Linux Kernel Mailing List , linux-iio , devicetree , Rob Herring Subject: Re: [PATCH v14 03/11] iio: afe: rescale: add offset support Message-ID: References: <20220208020441.3081162-1-liambeguin@gmail.com> <20220208020441.3081162-4-liambeguin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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_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 Hi Andy, On Tue, Feb 08, 2022 at 03:42:22PM +0200, Andy Shevchenko wrote: > On Tue, Feb 8, 2022 at 4:04 AM Liam Beguin wrote: > > > > This is a preparatory change required for the addition of temperature > > sensing front ends. > > ... > > > + if (iio_channel_has_info(rescale->source->channel, > > + IIO_CHAN_INFO_OFFSET)) { > > + ret = iio_read_channel_offset(rescale->source, > > + &schan_off, NULL); > > > + if (ret != IIO_VAL_INT) > > + return ret < 0 ? ret : -EOPNOTSUPP; > > Wonder if this actually should be > > if (ret < 0) > return ret; > if (ret != ...) > return -EOP...; Unless someone has a stong objection, I'd rather keep it as is. Cheers, Liam > > + } > > -- > With Best Regards, > Andy Shevchenko