Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3739683pxk; Tue, 8 Sep 2020 00:45:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwC3+eCt1/u6cWZ97R6v7FFHPK/l9cOsS1uAu+8IO/5nL0cAAQvN+CRgHykSjz08Fm54jUd X-Received: by 2002:aa7:d959:: with SMTP id l25mr24823131eds.383.1599551108900; Tue, 08 Sep 2020 00:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599551108; cv=none; d=google.com; s=arc-20160816; b=Fy+vylWlzPLABFLo/FC3yB6q2ha42obKXFz/mImxTuNY3y0iTHCQDr36AR7KJrt80+ 3wxNs68LTPAo9ihGS7U+DHp9hr7ILK1WiW21LlQOvAHU6p7a/TrQZRrzTmNQ831lzirq iInl/lUpHI3JKawSWjZmmRkNnOBK6Hg6wFBy4NkZ91tKGVfJrINtB4lyXQPLyZ86B/Ys fqFhXsGNZa5VhhF9rroGsNcBZLYOnbJ79KoQGpuIsu5tQmI+PAkLUrJ97MCMiiaV0OuO U7+QGk/m6bEhtfzPVbUNH34mYhun+NRs0iseQ7xRGtX4OsRM3iTtqUvdv3ZYZAqzeXCK 3g7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=IVVptDGcawqgCuuuuSn+C2jXTROtX0l06oj8pxRbmDQ=; b=iE8AxgVMCfpxNBwkj9qImk28li90HH6feb5ghGMlg8JsI5E1H6Tmqh3/9YVQqNDGIo LfXg4QISfoCHUu7Cm6jeXh1aWxpiE5cOz7MSZn31v83HZH5wjvOnq054vSmpNaxFjeby cei1r5lGDR0pNEUvvqkYiF70+0UzI9RpZeUo0gxWYFFn4kmZnBfAnth4LF/vok9XpZXY lFJ5gaXg2EeheFF/yfbFXdxLLJ5Y7R10cAUOTuKK/sjaY/4KL148nWNL3p6E8kzY3D9A hk9CIAJgMxS44ia9OrE9Z9xr6T6xA/4gvOSJx7M90PKLc/bBiIxyOlkL6PgW6qTRH3UP KrXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oVZ2dDz6; 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 zn8si12712269ejb.70.2020.09.08.00.44.46; Tue, 08 Sep 2020 00:45:08 -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=oVZ2dDz6; 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 S1729360AbgIHHoH (ORCPT + 99 others); Tue, 8 Sep 2020 03:44:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728479AbgIHHoG (ORCPT ); Tue, 8 Sep 2020 03:44:06 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E340C061573; Tue, 8 Sep 2020 00:44:05 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id d6so3209906pfn.9; Tue, 08 Sep 2020 00:44:05 -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:content-transfer-encoding; bh=IVVptDGcawqgCuuuuSn+C2jXTROtX0l06oj8pxRbmDQ=; b=oVZ2dDz61KRGBUGd9CGEgxF82wuH/rzVX+9OLfCTI861b+hiYaJpaQ/FpLrdz3i2Zz BAen+xFFQex3W9/zOZLw3jIDHCgQPCsaMnYuM6wLgEgvEMKeCy3T2uszHuB8NzbQtuUH I0lnBx6aplXO78W76+Jicp8hUG94cqe7qhSC86RwjrmTY9X8RoOOqf16/EkoQNI9meQW DFsu95xxQ5WuHU4Th1hZA+JJXolMAX7NJI9d48U5X7TOqMlDYRH8Q+BDGeQrxaTujsLP kQPPj67kOpJIytiLMg3d5twjYk1iugvpH4k5Pvh0xz61RjEuKqfhcMVyPzWnUJV7P4yy KXzg== 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:content-transfer-encoding; bh=IVVptDGcawqgCuuuuSn+C2jXTROtX0l06oj8pxRbmDQ=; b=PLM9/DdBFtOXqSSCzKkg9PoDRcTCEXj3PAmfcesP0WPVyltDktHW9H8e0MYsUE6jXL PfbIP4Lh6+8Q8SNe1lLySFzULGSUaksavigSBLCgpG1plSIn21U5VXXKD2I3kVoqpG+a OBlmZ5F5rNSy5uJDw+mas4khnYSneoYZU4lBHze3Ud0njipQjsbT70ztNCG+CQMfE00X lSH85g7OMK1X4oH0WcG8LB2d6b4pC0G5YbXrjfPnlkAQ8AO46a7Ol9WraHPZ6DpNx2QE atBD+lSX4ZRqga0IyTi6rcBfgi9xajkFx2VEGavO3Yr+jWOt+Q559EbWEawMOuibkrBJ Hgvw== X-Gm-Message-State: AOAM532wzY8eNNyWXr7sM04oWiLZlaXYsNHXpZAFd7a8/84uTv3PRPFJ JRsT97CfuMiAPEzmUB9zsGwY0jQlmTha7oFK3gJ7PIqbyTLbHg== X-Received: by 2002:a62:838a:: with SMTP id h132mr23492945pfe.72.1599551045021; Tue, 08 Sep 2020 00:44:05 -0700 (PDT) MIME-Version: 1.0 References: <1598259985-12517-1-git-send-email-gene.chen.richtek@gmail.com> <1598259985-12517-2-git-send-email-gene.chen.richtek@gmail.com> <20200829181157.1b653a88@archlinux> In-Reply-To: From: Andy Shevchenko Date: Tue, 8 Sep 2020 10:43:47 +0300 Message-ID: Subject: Re: [PATCH v3 1/2] iio: adc: mt6360: Add ADC driver for MT6360 To: Gene Chen Cc: Jonathan Cameron , Matthias Brugger , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald , linux-iio , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Linux Kernel Mailing List , Gene Chen , Wilma.Wu@mediatek.com, shufan_lee@richtek.com, cy_huang@richtek.com, benjamin.chao@mediatek.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 8, 2020 at 9:19 AM Gene Chen wrot= e: > Jonathan Cameron =E6=96=BC 2020=E5=B9=B48=E6=9C=8830= =E6=97=A5 =E9=80=B1=E6=97=A5 =E4=B8=8A=E5=8D=881:12=E5=AF=AB=E9=81=93=EF=BC= =9A > > On Mon, 24 Aug 2020 17:06:24 +0800 > > Gene Chen wrote: > > A few comments inline. The big one centres on why we can't > > expose the channels as _raw, _offset and _scale? > > > > I think i have 3 reason for use real value, > ADC is used to get real value rather than raw data which is not meaningfu= l. > And I can decide which formula needs apply according to different conditi= on. > Also the junction temperature channel _scale is floating point 1.05 > which is not easy to express. It's easy to express. Like other values in IIO subsystem which are float. --=20 With Best Regards, Andy Shevchenko