From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7523B2744D for ; Tue, 10 Oct 2023 15:55:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q6K/1EAW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08681C433C8; Tue, 10 Oct 2023 15:55:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696953314; bh=lRp8nSZvmE6CN6byLrcUKrdyad3jSUmUt/On76xWubc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Q6K/1EAWm/DryR9Fl1MJ8aA0eaJ8Lg902y3wtGs34ael6oHqYfYqrhYGa3DvNVxro M5mNUrIN9lATDy1CCuNcLE7YqokJx0rNZ/MSVOdhBHM4MTNnWA7WBa1+HGbNeNqxc8 5fTcDkjMHB5Tr9vzb/hY/uIu4mEPL49Chf2xckVGVxLUKRZIeMy0+lxALJhWAeJ2Tl mUo1Xg9wOlWBnmOJDlORvhxIp09cWE6QEOVlPLA6mt0Sf80GXeByo7IXAJPM7LsSGD gKY2VTqvKr/Xf58v+L00FYShx6jkea5A948xX3n1z0S+fr1Un9PMxj0tPSCjKHS/Wa Bxjlr/DLk8Ydw== Date: Tue, 10 Oct 2023 16:55:28 +0100 From: Jonathan Cameron To: David Lechner Cc: linux-iio@vger.kernel.org, linux-staging@lists.linux.dev, Michael Hennerich , Nuno =?UTF-8?B?U8Oh?= , Axel Haslam , Philip Molloy , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 09/17] staging: iio: resolver: ad2s1210: convert DOS overrange threshold to event attr Message-ID: <20231010165528.70f07e35@jic23-huawei> In-Reply-To: <20231005-ad2s1210-mainline-v4-9-ec00746840fc@baylibre.com> References: <20231005-ad2s1210-mainline-v4-0-ec00746840fc@baylibre.com> <20231005-ad2s1210-mainline-v4-9-ec00746840fc@baylibre.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 5 Oct 2023 19:50:26 -0500 David Lechner wrote: > The AD2S1210 has a programmable threshold for the degradation of signal > (DOS) overrange fault. This fault is triggered when either the sine or > cosine input rises above the threshold voltage. > > This patch converts the custom device DOS overrange threshold attribute > to an event rising edge threshold attribute on the monitor signal > channel. > > The attribute now uses millivolts instead of the raw register value in > accordance with the IIO ABI. > > Emitting the event will be implemented in a later patch. > > Signed-off-by: David Lechner Applied