Received: by 2002:a05:622a:4ca:b0:41c:c224:f26f with SMTP id q10csp530058qtx; Thu, 16 Nov 2023 10:34:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1sLBraurtzf9V3n1vi+bLVDK8xFKEUfT+3MfRTpZUisdtTJVZUXKAf6TCbjmnS4b8Yz6G X-Received: by 2002:a05:6a21:3296:b0:181:9b65:b4b5 with SMTP id yt22-20020a056a21329600b001819b65b4b5mr15946823pzb.3.1700159673427; Thu, 16 Nov 2023 10:34:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700159673; cv=none; d=google.com; s=arc-20160816; b=cFdemifrHzDRZY2N8Ymgb1sEgIeDqaA1OZbyg4OD8zYhLVZS/87a6VcblAJ4At05L8 Q7RMvaolpMvYsw4+WwnHLEBee5f9wcgPwMytYd4+2ZqKgY8iHQBYa02zrv4tonqY3Rah zotgl82JoziGLOv413IspSgq5dj4O9gaRNkJ8r1NtRNCSt4TEtLq/ayqKm/QWcUd4c+V OG2VVSgqaJvTBo7Ma5feGR0w8xA+z7H5jP8DOml0LTyWZD2AFLdOpJ1ZdI37k6R8HiMW tn4o8h5VVTsPniZeMjuLovolwmU8VwR3ehfoImCo0SMYRyV0579+j6cbeAmsp8akFWEk YDFA== 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=S4bm1uIFZj0TNSXaVGvtIKzShrDlEseTO6e/bHx7OSU=; fh=wfaMJkgezI4Twef6IylPTf0+kCZyd/pyWRzQv2tAy8Q=; b=NpfIYx48nJyifImzaHqYhwgZKLlLP2vxE/5uH36P4gE/dM5gwrkdfFDYWLVxNedqd/ QwvriRIMFUsTaaGsxR8DhbeFSDrWhZKOAIbwTvI3FGOyq3Ce0NDjjBXaq0pqi1ACfbzj /MvF5NUre+QU0npjeglE+lS6XxZTelkFs4RUl36VBLu0zs78WpXEW+29emh4ewzJTO73 TRdxoixwlbesH/hnAB6Lt0YqyBNJiX0ctL9dglE7J2UzyDCMqNVak7mjSjAmGyrNJ+jZ KHqhE1ru/BIAZHOeG4UFgtbwHts9mNApOnPHEvobI2bPNUG08+eqvgLNs7rceZJRq7cY EeFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GxzYQgfX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id cb17-20020a056a02071100b005c1ce3c9628si16072pgb.752.2023.11.16.10.34.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 10:34:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GxzYQgfX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 1DA1F81CFF16; Thu, 16 Nov 2023 10:34:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345439AbjKPSeY (ORCPT + 99 others); Thu, 16 Nov 2023 13:34:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231300AbjKPSeX (ORCPT ); Thu, 16 Nov 2023 13:34:23 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFD251AD for ; Thu, 16 Nov 2023 10:34:20 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C348C433C8; Thu, 16 Nov 2023 18:34:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700159660; bh=8EhJKo8rDeezKqxLzMDL7DCLOC6nqzPZCy8ff/Ayqe8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GxzYQgfX6q6Qrk30HeKvn5JTCTDM4xnC9E62Ky78pyXCsCpuwnhHWYNOLpqJeoS69 jXrNYndJ1RNR0GrPzvtu4KF+txcfx6nxgKaaM/yebJ+PrZ4wTvQUdpo9CkKFR6aq9f liU+UUd76DmQahOVwgWLldkF3hUEc352EUWtArptO1Z7R7rk/ai32G/x0K5ui3Jvw/ lB1kfJ3/YMyar+tzvnnBJGmr8j43nmyddwH5G+2pw6mriYvglmKOOwi1+igINbrv5O mOwuEcanj2bpiv0H8AEugX4oZ+ohKmJ/amHFUkQ28APHiNOW9NEfoGjC3kCYn6ynU8 W30nira3eBMzQ== Date: Thu, 16 Nov 2023 18:34:16 +0000 From: Conor Dooley To: Andreas Klinger Cc: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lars-Peter Clausen , Petre Rodan , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: honeywell,mprls0025pa.yaml: fix function numbering Message-ID: <20231116-grudge-hankering-b7a71d831b93@squawk> References: <20231116182443.7290-1-ak@it-klinger.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hdaK5Truep84srtq" Content-Disposition: inline In-Reply-To: <20231116182443.7290-1-ak@it-klinger.de> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 16 Nov 2023 10:34:31 -0800 (PST) --hdaK5Truep84srtq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 16, 2023 at 07:24:43PM +0100, Andreas Klinger wrote: > Fix wrongly documented numbering of transfer functions. >=20 > Fixes: a765c985e696 ("dt-bindings: iio: pressure: Support Honeywell mprls= 0025pa sensor") > No blank line here. > Suggested-by: Petre Rodan This should be Reported-by. > Signed-off-by: Andreas Klinger > --- > .../bindings/iio/pressure/honeywell,mprls0025pa.yaml | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/iio/pressure/honeywell,mpr= ls0025pa.yaml b/Documentation/devicetree/bindings/iio/pressure/honeywell,mp= rls0025pa.yaml > index b31f8120f14e..61775eff1128 100644 > --- a/Documentation/devicetree/bindings/iio/pressure/honeywell,mprls0025p= a.yaml > +++ b/Documentation/devicetree/bindings/iio/pressure/honeywell,mprls0025p= a.yaml > @@ -64,9 +64,9 @@ properties: > description: | > Transfer function which defines the range of valid values delivere= d by the > sensor. > - 1 - A, 10% to 90% of 2^24 (1677722 .. 15099494) > - 2 - B, 2.5% to 22.5% of 2^24 (419430 .. 3774874) > - 3 - C, 20% to 80% of 2^24 (3355443 .. 13421773) > + 0 - A, 10% to 90% of 2^24 (1677722 .. 15099494) > + 1 - B, 2.5% to 22.5% of 2^24 (419430 .. 3774874) > + 2 - C, 20% to 80% of 2^24 (3355443 .. 13421773) I don't understand. These are arbitrary numbers in a dt-binding, why does zero or one indexing make any difference here? Can't you just fix up the driver to correctly map the dt-binding to whatever needs to be written to registers in the hardware? Cheers, Conor. > $ref: /schemas/types.yaml#/definitions/uint32 > =20 > vdd-supply: > --=20 > 2.39.2 >=20 --hdaK5Truep84srtq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZVZgpQAKCRB4tDGHoIJi 0ro9AP41/miHXh7XhWfNmwyktMkO3qn/gHtMyuEiySwMJSiQygEA5W0rZahN92ag PUp2JscwQiOwmt7fQzs1cJb7N8aOvgI= =C+WP -----END PGP SIGNATURE----- --hdaK5Truep84srtq--