Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp425637lqh; Thu, 28 Mar 2024 06:23:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPCBfrIZmalctLvneHHw5LH4cp8CyJ2zbc7CDsvLSHDydtcPyJa/MxzU4xnaoHD8LeO5Agjrhj/3qPeWeKdmBy1CFubfuMk7SKQ6sdxQ== X-Google-Smtp-Source: AGHT+IHYIQPhIxrWNx+xzDzL4admQ5/z1HBdk7GcoYVetQddCEjICDtDAXXXbaeC5trLgbNdVOZs X-Received: by 2002:a17:90b:3d03:b0:29c:2144:6656 with SMTP id pt3-20020a17090b3d0300b0029c21446656mr3312788pjb.4.1711632214771; Thu, 28 Mar 2024 06:23:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711632214; cv=pass; d=google.com; s=arc-20160816; b=SHfv77DytlSXaTfDkdXzSA5mIwp0pyaVVhT7T49CzlLblJT5I0NziTwO2GRwYb7rz3 l2+pDYW5tjIBkWHh/BuvON9lgtcKQZ+VsbeMedx7xBlYzTLbF7chKnrZPFS3E9kPhW+n JuJoqPx7pFQSCcusf4UdtA4dYILKXZ9XbHNB73kt0qpkIN8ulIHezfvx+bAFkQlFI2B6 gCQc95BmSyJ4rLm5sk70kGV0LE+YV7c2gxtjbWeapwEQxwmkEjFDtNl9djcR2jPUxln4 RyF4tEuSdcVqcfr98Ye5VmC42AxVz/29YFvRvcSp9JOVSMOfm14YXDBuUUpX7sYluo3X 7MxQ== 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=ZKJ7/fiutKE4lG2mWwbJ9vM/EgAXjrylPsAeJYeA2oA=; fh=bM3oZKv/P9J7Iu/co0XKEkMuJCpSkn1/apHHjXOV6Yo=; b=CATIA4UkPXAKD/oa7zU8A11cXNbfxqcC58lOAg0wn6bBVFMuH1hSHCyhmtLca/T4a0 rHCvRF9cXEufqAHCfFI6bgof4upBMY3A9Cf21LTyZWeEZ/3aQav31IX4h0Tj7xyK+aCm KYRDUPmRJG1mLlhrIojkFDwxiRjlgfOFrYlgC1kSP7XG9ncH5k+nQ4kOH1qQEWymV/4e tU+00Nh6CmKIqwcyDtjxeplshvXnFSq7GsD0bJnnp/B/mVViM+3ZGc8wZYahAXSdzyhL zEwT+CO72huOSK6RGqe68gDqd3s4CkgC+dtuUD6DjeIj2XZkZmblJy9tsLrKO1tqTRzb gGew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pWMV9tpt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-122949-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e19-20020a17090a9a9300b00298f693c1f9si1591089pjp.32.2024.03.28.06.23.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 06:23:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122949-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pWMV9tpt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-122949-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122949-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6A854292288 for ; Thu, 28 Mar 2024 13:23:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D3CB80604; Thu, 28 Mar 2024 13:23:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pWMV9tpt" 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 554CA7E572; Thu, 28 Mar 2024 13:23:27 +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=1711632207; cv=none; b=M1oA7VHR+RrVAnp6oTvFCKnliw0xTnIFZyn4uc4vTP9zQyXE/yQCCeTut0HewmQYAVVG3KwDPA9DPa6tP0L3HD1Yls6z0S/xj4tuaFgMmyG+8cdgXEz35ryMoaBNGQkBQmAWdUei1KSejDsyN64SOgVK/gAU7U333qhwWCQq9lg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711632207; c=relaxed/simple; bh=WwrHa0cIn3sLHwgL4ee6fSwgygq41ZkzFEiD39Kmi60=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qYITA/k4DC9YtwAnHrXqb1rc/CLK7ddU8+4MwkgP1vJ4NAMnB4ieKsY/E06wLEOtHDu5isdl3drAmsxEi5+zjqIY5gAK4L/w5ORiU0LoQ5KR1COtnJQWueh5z5RCzeFVwQFR4pHSIRNsV5FgbNPNo3F3mXMDaUhK0zz/ioJXcwM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pWMV9tpt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4158C433C7; Thu, 28 Mar 2024 13:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711632207; bh=WwrHa0cIn3sLHwgL4ee6fSwgygq41ZkzFEiD39Kmi60=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pWMV9tptovIXjeBwemw0pnxq1huQpLWmAQqPv35HutFscCATEVH48Gw4BHVSD41Q0 6M0Tz9i9I+pXKZuiWRy0D0YvHa4+lg9hNVlOol4roJelanQLGcjOizTSsb2gP0cWCJ rz1F8qDnJyWHkeG9Fd/JsoPv9I2LZGxp2y5ttGHBeOlcTOHEgC1Xz8YAjajpWa0fdG 2wm09Roj1SuLT5LwGutE2M9ZSyxFuI96O9R+ZTGrsH184Ty4LuXzrkZIB/x5+ClMz3 06i6yAD6D4GwmF0Q8Vd8YCAFuyxzYrzpFTfNagJqdRNwv/vhsdRYiVgh2IuNJ0srq4 DUdoKfHIpiyng== Date: Thu, 28 Mar 2024 13:23:12 +0000 From: Jonathan Cameron To: David Lechner Cc: Michael Hennerich , Nuno =?UTF-8?B?U8Oh?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: Re: [PATCH v3] iio: adc: ad7944: simplify adi,spi-mode property parsing Message-ID: <20240328132312.52f34df4@jic23-huawei> In-Reply-To: <20240325-ad7944-cleanups-v3-1-3a19120cdd06@baylibre.com> References: <20240325-ad7944-cleanups-v3-1-3a19120cdd06@baylibre.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; 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 Mon, 25 Mar 2024 14:40:36 -0500 David Lechner wrote: > This simplifies the adi,spi-mode property parsing by using > device_property_match_property_string() instead of two separate > functions. Also, the error return value is now more informative > in cases where there was a problem parsing the property. > > Suggested-by: Andy Shevchenko > Signed-off-by: David Lechner For this I'd already picked up part of an earlier version so hopefully the rebase of my togreg branch needed to take this didn't cause anyone any major problems. Anyhow, dropped earlier version in favour of this one. Jonathan