Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5956737rwd; Mon, 5 Jun 2023 10:46:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Jx3FDHgWHdeEiX/RxIAuoIFjb+kPyB8gY4pw8sNbvg9wMXXDSrw6KKd9VlFy2SFannXWv X-Received: by 2002:a05:6a20:3d89:b0:105:53:991 with SMTP id s9-20020a056a203d8900b0010500530991mr4532454pzi.0.1685987192880; Mon, 05 Jun 2023 10:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685987192; cv=none; d=google.com; s=arc-20160816; b=phYGKOCdKJhDX8lCMN22H9YftsZFSns8mcNrqwSspHCbMGMLVcqvAXVtHxZ2t5IA83 TxvlYLXTcBcg3i77r6YNSzMdIi7hmBTzqbQaWznIa4bW0yv9I2jFGeoxhcBFxM8kaoD4 cskDXLEKUV2A7fYiuTSyUuiiWkz85m96KcL6R4cjT3uQp/4FIAhRNg1WlcqKG4kb/ds8 VxN8UQtlzj/68BD7Ud7hAQ9FpSBntDH05DPD7yqBzf7vUK0GGDFFJByI7Sn2Btx6ooTh a7Jsha7J0E6yt0T+LFYQnWlZKtZV648aQkGSecWaVVW7WyYA5b3AZjZtaYFYNuUNVTFj c94A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=Yjxc+85Bq54GZEvP6akAc9UZPm7vVtcD2MajvGxNqiY=; b=DRvCyQMaLFimjXqViQTLBNqJQJEJwgwVz2DjG7bxF3DUHjZGdNgqyd1kJgoLk/ELF5 F3LO6bV5XOFvKk+rX/yeiZ1WyGgUaDh2FXyMPF2f+T5uC3PusAsytNDiKnZj01/+IyZ7 EzATcuDaYV/+cNRbBz3q4GuXuMHSt6dr5prKfsAmgnT8PJlrAOqIRTIr8rCjCqNXO6/O 169QcnOqwzHeLCL6th2Z1zVtGquW6tEVMdeuhjVm69vweWabudQa3SdPCaxxxl629EN5 yNPL+4vkN1MmOg8opKVOhVc3SqFFOUL+/l450Y1PmsL+/0vWQ7lBeZAF5rmT54dlDj0M k5kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=fi5uoXdA; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w20-20020a639354000000b0053f24d5aaadsi5875830pgm.121.2023.06.05.10.46.16; Mon, 05 Jun 2023 10:46:32 -0700 (PDT) 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=@bootlin.com header.s=gm1 header.b=fi5uoXdA; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235432AbjFERgu (ORCPT + 99 others); Mon, 5 Jun 2023 13:36:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229834AbjFERgt (ORCPT ); Mon, 5 Jun 2023 13:36:49 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FC678F; Mon, 5 Jun 2023 10:36:41 -0700 (PDT) X-GND-Sasl: herve.codina@bootlin.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1685986599; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Yjxc+85Bq54GZEvP6akAc9UZPm7vVtcD2MajvGxNqiY=; b=fi5uoXdANbPmsJUCGLlp8YkQvRea5sm2llsgEt0TFFbN/DiK/ijhu1QIs5Lb2SHJSBwlTa xdRattLNG7l9JpgH7Z2IWlWWnCWosU1xEqePGqf0QzTm5HkuErSI72aB0EIN6+4amnT0Ga 8P+eqvTkLDpUBP2q2wVkWdPbKHMPlb/UrWbta2UWHEFpzfSkXWd8qOJMTia0XbM4I72MNo htz4tOzOJNwc7ZqbKvRPvV4SamC6GjcYV5Yf3fFGzU1Qozhdsb7h7PJ7F8Vnc6JSTYkcZc ETtauzV/LnDHBQc6O1Sj8LPo50Bx0osDRQ1RHgVz9XCDZ+P/SY/4l7DojYpbKA== X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com X-GND-Sasl: herve.codina@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id A2C4E20004; Mon, 5 Jun 2023 17:36:37 +0000 (UTC) Date: Mon, 5 Jun 2023 19:36:36 +0200 From: Herve Codina To: Jonathan Cameron Cc: Andy Shevchenko , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Cameron , Lars-Peter Clausen , Jaroslav Kysela , Takashi Iwai , "Kuninori Morimoto" , , , , , Christophe Leroy , Thomas Petazzoni Subject: Re: [PATCH v2 5/9] iio: inkern: Add a helper to query an available minimum raw value Message-ID: <20230605193636.5239a271@bootlin.com> In-Reply-To: <20230605180547.0000528b@Huawei.com> References: <20230523151223.109551-1-herve.codina@bootlin.com> <20230523151223.109551-6-herve.codina@bootlin.com> <20230605094637.7615b689@bootlin.com> <20230605180547.0000528b@Huawei.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Jonathan, Andy, On Mon, 5 Jun 2023 18:05:47 +0100 Jonathan Cameron wrote: > On Mon, 5 Jun 2023 12:45:24 +0300 > Andy Shevchenko wrote: > ... > > > > > + default: > > > > > + /* FIXME: learn about min for other iio values */ > > > > > > > > I believe in a final version this comment won't be here. > > > > > > We have the same FIXME comment in the iio_channel_read_max() function I > > > copied to create this iio_channel_read_min() and, to be honest, I > > > don't really know how to handle these other cases. > > > > > > In this series, I would prefer to keep this FIXME. > > > > I see, Jonathan needs to be involved here then. > > It's really more of a TODO when someone needs it than a FIXME. > I'm not particularly keen to see a bunch of code supporting cases > that no one uses, but it's useful to call out where the code would > go if other cases were to be supported. > > Perhaps soften it to a note that doesn't have the work FIXME in it. > > Jonathan > Right, I will change to /* TODO: learn about max for other iio values */ in the next iteration (both iio_channel_read_max() and iio_channel_read_min()) Regards, Hervé > > > > > > > > + return -EINVAL; > > >