Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp92054lqs; Mon, 4 Mar 2024 16:28:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUg7dTsOnYfVON4XF7nz3xm2gR8J1PSEFeyXnako3DT5gcwVPu4URTltNYxQqxaei6EG18CiYcYdAnOGP8F3bvO6zu5wvh8hpLZIn9/yw== X-Google-Smtp-Source: AGHT+IE1uPMlbfRZ4Lu70+d9jx1mx3gbVFV/HE67t327iqGbxPAMez6G0AfMHG5XgcF7AMtztu7d X-Received: by 2002:a17:902:a987:b0:1db:fc02:f96e with SMTP id bh7-20020a170902a98700b001dbfc02f96emr297052plb.24.1709598534293; Mon, 04 Mar 2024 16:28:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709598534; cv=pass; d=google.com; s=arc-20160816; b=cSEQTNFh/3gi+JChJw9LnIIABFAMfA2eEhOFqBYs+QwgBjxbYOiT4bdk/KT4CGd4Q1 uAy3UopNY88pTsoULX7RRxoQAkViE58Dw1w3tajT7yET58S3sek7QNW8JamEOkO4Begu ryVKimO4sg90F/p1HVx4GSuU0qbPzau6kubD529YBnKCV3VjtMiYOmGdEFW5GiHjOscc aKVt8IRwrpHGmXHx8rCkT4AuSHogONtx1T/oRL9RJcq09E1ZtRhzETiw0XwqkXa32kTT Pp+COAzFScjLKAPFMRykfXcwFZq2vh3vkwKlOoa1skNMzfRMOfvXn9m/MRkOqCcjfQmn S8FA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2TEBh842bpWvFeRLWwrtU0iI8xSYsMvKaXd0LecDU1g=; fh=wBfb5uoYTngPy3YEcEeQ2/+wdzbIYBQK05t6G1QCUWg=; b=q27b0O2yd4c5fzW6aQshDsIUk2o3YbPSH9zu5mWwK3/tQ8leTbQxFiykgWjQDZioun eJ+ldyTalRdKZveE37BtSyJgBljbaOTUxVqy6OQT+VIWMdccCqcJOzs79LIiRz+wSs6s K7uXbQ9caPWz8mlJQeD/Z/INX0YwhViFhae4NqWNzmzoYV7dJq+WaxXWr/iLN9NH41xo l+gocnNSuXO5DIpxhy71sVJ+BOjhY33E/a+NG23nQ2BN/QvVBf3YhK93hGb+mSZ0AS+r ipzy9FlpJqVdFy0i3LvV0uF9vd/m4PRwd+Qnrwo1RVAIY1mzIP+RSytNG61MixgiCdKA rhkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=W45G8TcZ; arc=pass (i=1 spf=pass spfdomain=bewilderbeest.net dkim=pass dkdomain=bewilderbeest.net dmarc=pass fromdomain=bewilderbeest.net); spf=pass (google.com: domain of linux-kernel+bounces-91455-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91455-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 4-20020a170902ee4400b001dbdd62dd04si8544317plo.625.2024.03.04.16.28.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 16:28:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91455-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=W45G8TcZ; arc=pass (i=1 spf=pass spfdomain=bewilderbeest.net dkim=pass dkdomain=bewilderbeest.net dmarc=pass fromdomain=bewilderbeest.net); spf=pass (google.com: domain of linux-kernel+bounces-91455-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91455-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 20803B211FA for ; Tue, 5 Mar 2024 00:28:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 125751C01; Tue, 5 Mar 2024 00:28:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.b="W45G8TcZ" Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [71.19.156.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9F568F62; Tue, 5 Mar 2024 00:28:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=71.19.156.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709598519; cv=none; b=f2QWx6sZlU2hWgmLrLJp1dA+WpqIa31Ex8XRWjZ9Kic2fV+KpL+3vo7/8GiHNOLD35ws8zgv3sICxIWXneLu3mOijGUBoVeviUZfGH/LoHL/B554VTEFQOTWKtUgXipwZJCbb0G2VVDDo11Xo1oefk1ykGjEMRmnKz5k860kjpI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709598519; c=relaxed/simple; bh=Gku2FZxmw6pABCG6ITNNpu/JYRxaw3ln9KpEjA4RqKI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bTMv8KjIEFgQHj2jgUr0yeFqcOoH0e2U99IrQXbJZM+c2X2KOc7KEcJ98xaDDirzA7z45wbJk1Omt0LTqKu7OtxJ6CwirSI3RGiK5x9hhwifaOeQSyAwzSJ6z6ZgkG4xsKwZ50fK4QO4cYCnt14MGRpdhzJWyQ7sbm0UMNPCQTk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bewilderbeest.net; spf=pass smtp.mailfrom=bewilderbeest.net; dkim=pass (1024-bit key) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.b=W45G8TcZ; arc=none smtp.client-ip=71.19.156.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bewilderbeest.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bewilderbeest.net Received: from hatter.bewilderbeest.net (unknown [IPv6:2602:61:712b:6300::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 786CDA10; Mon, 4 Mar 2024 16:28:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1709598516; bh=2TEBh842bpWvFeRLWwrtU0iI8xSYsMvKaXd0LecDU1g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W45G8TcZszuC8qmMK8TMBEFeobo6f/cn6fAeyayR/F2xP5dUnQb8BNvAjNlWt9BXp Y0k7qe+VsbsvmhTAbb/dScBgFgG7XNNkedui+G07APUategnJaJcprV/mH/FXdCvQa 0VnP3DOd4x0Qg1l01xtjJSUI6CDL1j/5EejqKRak= Date: Mon, 4 Mar 2024 16:28:35 -0800 From: Zev Weiss To: baneric926@gmail.com Cc: jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, corbet@lwn.net, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, kcfeng0@nuvoton.com, kwliu@nuvoton.com, openbmc@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, DELPHINE_CHIU@wiwynn.com, naresh.solanki@9elements.com, billy_tsai@aspeedtech.com Subject: Re: [PATCH v4 3/3] hwmon: Driver for Nuvoton NCT7363Y Message-ID: References: <20240227005606.1107203-1-kcfeng0@nuvoton.com> <20240227005606.1107203-4-kcfeng0@nuvoton.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: On Sat, Mar 02, 2024 at 12:19:07AM PST, Zev Weiss wrote: >On Mon, Feb 26, 2024 at 04:56:06PM PST, baneric926@gmail.com wrote: > >>+ >>+ fanin_cnt = of_property_count_u8_elems(child, "tach-ch"); >>+ if (fanin_cnt < 1) > >fanin_cnt < 1 || fanin_cnt >= NCT7363_PWM_COUNT > Er, off by one -- just '>' rather than '>=' there I realize now. Zev