Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1693569pxb; Wed, 9 Feb 2022 02:22:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6FOrhHdWfzEaWYE288IZCKLw1O1UQTSl8ZBTYKLlduNVlBQwvVV4CzvqgB17Tp1EUW1// X-Received: by 2002:a17:902:b785:: with SMTP id e5mr1513160pls.6.1644402131947; Wed, 09 Feb 2022 02:22:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644402131; cv=none; d=google.com; s=arc-20160816; b=BvAN5ge/LAu+l4i+YMcGGauXvK7R88CBGVAE42fYxjPp+Ww1qgkkNs4rzCRQiHy+MW qC3UY9IeK9TpNneAAKgLumdp7iJx0ESE7WJGZOAS1AngA20y4BT0VJjeS7/ZLimngBZp 09O/+HPOe0IslbYeFLLuxFNIH+aThx6Dsdb9SxEB9Lkl+SJ/SA0XUV32bolCYXEwBKuH bmU2LXEXuRrrPK9Lcf/wL+05LfmxnRoYXiIYhWlOOtjixwR1/3xw0DHTTGf0QfamR5eO mrSsNSfnLwuvWT+I1Ac1FiFn+ZtEJhNfha6l61ZoAGYVNY2g1yUEMwAtKL3raIVFVpdL AjUQ== 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=f4NlyDvQ+OmTWhioc5XIe48Pbf0SWwcG+0BmyfZwVFE=; b=UoZhe2WzeyCkKuEi2mO7PMtHaxIcKI2sazEVwSBs97i69dsv9S6d7X8ocSMeFjr9J9 Db+RZbCrTIcG2I3Jh75FVC+2s3Cte0zyJldzd6sXH2+zS8NDjfEGmWEuLYyPp96q6+7B Pva3vNgXsisRG6SPjZ9HK3iKEhJoYShfhigK1IN9dbUXyJW0idozzVR9eI28CqstfclH obcDc9/OjEHUloskm3PGieHN6tbbKO23Gc5XhHgeOHsHcmUAKirK66zQVkFDggyZ5NHe p+IjvrU/zRg+tDJpk965/+iJM5Z8eRPTzvBJ9SGxz9mgZanQbZGPibzPyOSk5RZGT/Hc BH3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=InKvcODq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w19si4381162pjg.76.2022.02.09.02.22.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 02:22:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=InKvcODq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 482F8E00D126; Wed, 9 Feb 2022 01:19:05 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376403AbiBHNnI (ORCPT + 99 others); Tue, 8 Feb 2022 08:43:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235437AbiBHNnC (ORCPT ); Tue, 8 Feb 2022 08:43:02 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2338FC03FED9; Tue, 8 Feb 2022 05:43:00 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id cn6so14804122edb.5; Tue, 08 Feb 2022 05:43:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f4NlyDvQ+OmTWhioc5XIe48Pbf0SWwcG+0BmyfZwVFE=; b=InKvcODql4soQETTIoVQwvWCSdhsI4olMXqvYkj6+7nx78OgY4P9Ppbcpbe0Bl5K8C pCG8Np9utrrmDQ6BuEoF/qGZtWAFhyl1UvLVi++W2jBkSMCPsSc+mQPIID67reJ7L34p F/2ZDRJ642N1nstNdozNlDA5HRXPh9HKLNqBkpL9GYOa89jd7E7HOmivcqEv7Wo/cAgJ ZZ3fXK8NNkRSoeUHZnfYWXFbl5XOe/tSFfYjnJ/pgS5VFaskYns0huL9KF/MVQPe5YTn TMMzgHKtHH0k++cYe2OeoHVChbWquicgEBYdCEhBEDz2oGZTVZxE1WN/J21bLJbixpAo wZdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=f4NlyDvQ+OmTWhioc5XIe48Pbf0SWwcG+0BmyfZwVFE=; b=KuWfb9tZffRlUtlE/yrgtElVv6eQ3/r8hnV6i6i9sdWQgsgCO+2Bm3eLHqKlX/MmE5 N/qwZl7YNzJn9XYfI0KodivkNh+ZCQzy9GQBtYB1Y+HwNRJrxAb14gx7pVkUMBgluyuF eXZpF0vCXeCkUjDLyYkw/WBqkx9Z6cdkxix6lUgCgdRCaVGLiHH5TMPKuRAYPdvq5fbA +WfKWYFCl6bSkTGJwH2eDWze4tpoY48g94lFYI6ZduDIsx20Vks+Nuzm9JCay/lX955K zynuhxXtb4OgKZEELVeJjSsviP7sUdHMrNP17aZs8lN/Qv9Gq7L8c5OcfvhU2rPnB0NV dRGg== X-Gm-Message-State: AOAM532TIbRd7bvp+6PKHbmNJ1c8UebtSokrTuAysXcBt+xUltn11cLQ wBFMoH+p+XGazYODYRVgfVUQXRSHfuvge6GaaZc= X-Received: by 2002:aa7:c413:: with SMTP id j19mr3693113edq.200.1644327778649; Tue, 08 Feb 2022 05:42:58 -0800 (PST) MIME-Version: 1.0 References: <20220208020441.3081162-1-liambeguin@gmail.com> <20220208020441.3081162-4-liambeguin@gmail.com> In-Reply-To: <20220208020441.3081162-4-liambeguin@gmail.com> From: Andy Shevchenko Date: Tue, 8 Feb 2022 15:42:22 +0200 Message-ID: Subject: Re: [PATCH v14 03/11] iio: afe: rescale: add offset support To: Liam Beguin Cc: Peter Rosin , Jonathan Cameron , Lars-Peter Clausen , Linux Kernel Mailing List , linux-iio , devicetree , Rob Herring Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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...; > + } -- With Best Regards, Andy Shevchenko