Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2050299lqo; Sun, 19 May 2024 10:46:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXGyA9OStyIMP0rg6zM/X5W9dCeE7+SMjBluFuY+V0ZISoF9hG/04bqt8MP0eCokArqCZ9MUU5R0Rd3tpJpSv6Z9Saj4YQpdjM/p4ovDg== X-Google-Smtp-Source: AGHT+IEl+z2O7dMzcUCBhbEYeaGppK9THxAv1SNXiegGod+bMzNU7rPq6gZj7mafiknVk3/PR+QF X-Received: by 2002:a05:6358:431c:b0:17e:8e7f:59f9 with SMTP id e5c5f4694b2df-193bcfc5b63mr2905323455d.26.1716140768864; Sun, 19 May 2024 10:46:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716140768; cv=pass; d=google.com; s=arc-20160816; b=TF/nr+qDl6kUUFUSFn38bDctlF2Sfgm3SWv0nCt1pXnVZsY+rVqlTssAlwNlaOng2c tIeE4H8na1C2xUP+jQBn4JnTpuno0Z1rfdxSWhc711qaZ1j85PFY5n+q3X4Kgg4vqman nXUbrqMNlqWjnA9nd6h9lUzYbLjYMR+3sm4v5KlnYu8L/DSweUNItJVNCzXym9OPgJQ/ Etj+ERBIbWd76PQ//RkmuGBfDlwmCuQUezrnqve/tYHXp8Gfgj4LnlAYo20YYGgo7c4L 77+ZVRt5xXt4oInq0/Nx0ygBTJGCWrGuit0esfthOHM+Im+6W8f/9klg7Q2SWmr+8+NM p8RQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=Y0a+xmvCu5Sx/tBQ8bRA+xn61NHQpXEAz9IM5611uGg=; fh=l3aZdW+WYt1m129XjEhcKjO1WJ0/DkX2tYwnn8UtSv8=; b=zn9zYIHcyv560Te2mP8/z6CuuWq6RuVa6T7tQKRsPYy5S2S4bIFJjGm08GSGOefMsa knxJMx5U4RuuVMwTa+HA2/v5e1iGaQ4UvZRK8/k1Q+8JRJRSlvG7gHtUCFMOjolGCSfs 5Ghd3qijckhGmzuDhEQXs9BnQR63j7IXDigB9Gh5j5rpyrmg93KMoJXQtABzCZkvSSOj Gi9Iu9UeBL8/kixf8E/+Kd7he0wBGsXpIPNw5d3oM7ObzP+0o5Ck21U4NtCKOgpDPpwY QORzaTTsKC/0r/Lv1JetddNtgUBRkSYEkiSSThy87gd6kHe9E58nXcok/MuTSnPSuNdc 1yuw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pT7tMcKw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183179-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6479a2bcceesi2169918a12.502.2024.05.19.10.46.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 10:46:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183179-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=@kernel.org header.s=k20201202 header.b=pT7tMcKw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183179-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 5571BB21654 for ; Sun, 19 May 2024 17:45:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81E6C50241; Sun, 19 May 2024 17:45:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pT7tMcKw" 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 A217F2E3E4; Sun, 19 May 2024 17:45:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716140739; cv=none; b=VPMQ4u60teRjA2LyqxgG2n2NzuA97aBI3A5R/CuNUIiN6YKOHE5UwYOlo6H4DGY18H+2unTvCMm1aONS8gI1e6dKssi9/GHbdfXeJ2izF2F3RJiRFYkGo75auky82efWJbSRDF5bTK3LOxY+6VmLgG6/L7RG7i42B/LXJqliYSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716140739; c=relaxed/simple; bh=x+fICK3jU4fuNsoUgsyQNFBRbjYOgrloY86wnCF2fUI=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NCR0rqZ/E1D5N/GtPwEszAzjoRd40X4T3WgOk78b9Rs4a2XWgLEw/4jE4kdyeVIVuvRl0j4CR7X1ct67db477znnu6rNmhnjdoOrc3vR8AxZGB7VR6Ow8iNjEFq69XNhnWsewXNxlibJAmyx1O5PZEvj8u6MM9FSq81UbCxDixE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pT7tMcKw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DDEFC32781; Sun, 19 May 2024 17:45:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716140739; bh=x+fICK3jU4fuNsoUgsyQNFBRbjYOgrloY86wnCF2fUI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pT7tMcKwlWXsj6l8o1dmeOZbFH9yNcRk39u3J0wlM2RNzWb//KA7VdH6uuCJxWrj5 +CgiJgulRjSY3iqtl6zGzAX07CG0z5py5gmM5XKO8BjmK8lAMRAOE+VNcAfPPb1l7h jUew+iaVMlHMCQzpSiFhhJsYhTY+C8pNUX1TSXM1cbp9XD71RbUleiesnxN550igOK Ruoqke0X6RXRPPKFJt8lLuzU/xp/7pPbaK7sCe+Cl3mAP+2g+6TOWv3nS+5Z+fQdLo qe7iGEqxQmsPXEgMlsa1wbWXqVnAqcJLd5HUnJpt0WiRIrTnh31D2lupyzzIOd/VTU Q18Lwv4+rjFzQ== Date: Sun, 19 May 2024 18:45:23 +0100 From: Jonathan Cameron To: Alisa-Dariana Roman Cc: michael.hennerich@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, lars@metafoo.de, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, andy@kernel.org, nuno.sa@analog.com, marcelo.schmitt@analog.com, bigunclemax@gmail.com, dlechner@baylibre.com, okan.sahin@analog.com, fr0st61te@gmail.com, alisa.roman@analog.com, marcus.folkesson@gmail.com, schnelle@linux.ibm.com, liambeguin@gmail.com Subject: Re: [PATCH v8 1/6] iio: adc: ad7192: Use standard attribute Message-ID: <20240519184523.03794b53@jic23-huawei> In-Reply-To: <20240514120222.56488-2-alisa.roman@analog.com> References: <20240514120222.56488-1-alisa.roman@analog.com> <20240514120222.56488-2-alisa.roman@analog.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; x86_64-pc-linux-gnu) 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 Content-Transfer-Encoding: 7bit On Tue, 14 May 2024 15:02:17 +0300 Alisa-Dariana Roman wrote: > Replace custom attribute filter_low_pass_3db_frequency_available with > standard attribute. > > Store the available values in ad7192_state struct. > > The function that used to compute those values replaced by > ad7192_update_filter_freq_avail(). > > Function ad7192_show_filter_avail() is no longer needed. > > Note that the initial available values are hardcoded. > > Also moved the mutex lock and unlock in order to protect the whole > switch statement since each branch modifies the state of the device. > > Reviewed-by: David Lechner > Signed-off-by: Alisa-Dariana Roman I'm going to work my way through these, picking things up until I hit anything that needs non trivial changes (hopefully I won't!) Applied