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=-10.5 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=ham 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 39273C433B4 for ; Tue, 18 May 2021 18:00:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1A8B3611BF for ; Tue, 18 May 2021 18:00:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344353AbhERSCE (ORCPT ); Tue, 18 May 2021 14:02:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:53186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344188AbhERSCE (ORCPT ); Tue, 18 May 2021 14:02:04 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BA89A611B0; Tue, 18 May 2021 18:00:43 +0000 (UTC) Date: Tue, 18 May 2021 19:02:01 +0100 From: Jonathan Cameron To: Peter Rosin Cc: Linus Walleij , linux-iio@vger.kernel.org, Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler Subject: Re: [PATCH v3] iio: afe: iio-rescale: Support processed channels Message-ID: <20210518190201.26657c49@jic23-huawei> In-Reply-To: References: <20210518092741.403080-1-linus.walleij@linaro.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org On Tue, 18 May 2021 12:00:10 +0200 Peter Rosin wrote: > Hi! > > Thanks, this looks nice! > > On 2021-05-18 11:27, Linus Walleij wrote: > > It happens that an ADC will only provide raw or processed > > voltage conversion channels. (adc/ab8500-gpadc.c). > > On the Samsung GT-I9070 this is used for a light sensor > > and current sense amplifier so we need to think of something. > > > > The idea is to allow processed channels and scale them > > with 1/1 and then the rescaler can modify the result > > on top. > > > > Link: https://lore.kernel.org/linux-iio/20201101232211.1194304-1-linus.walleij@linaro.org/ > > Cc: Peter Rosin > > Signed-off-by: Linus Walleij > > Reviewed-by: Peter Rosin Applied to the togreg branch of iio.git and pushed out as testing for 0-day to poke at it. Thanks, Jonathan > > Cheers, > Peter