Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1125038rdb; Fri, 19 Jan 2024 08:54:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IEAeeIbCqCRk2pa74HMuEGRlxEwi62kowlOFXGFo6KDwHPZffpAeb0rJvyDilVCCc29YHIA X-Received: by 2002:a05:620a:371d:b0:783:8b89:3943 with SMTP id de29-20020a05620a371d00b007838b893943mr206179qkb.113.1705683292419; Fri, 19 Jan 2024 08:54:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705683292; cv=pass; d=google.com; s=arc-20160816; b=oHhiMHVZ1J08dkZpLOEzxkj1vOmNcm60nWCg8vchdRVjBePDsMD3uWq9FMGfJ503JT LOvyc6NJEfLVt6ow6Ph0qqIwYKx2W1msNm/wGNVyGhKI13d0g9JLoabqmwjGoAudUVUj eguiY6XglcD894le9yJPK4VqPRh4es/0VVHx5ISExMijZmmUBHCd2qborEbpmp1znVHb xN8OWQRFEBzqQzFZxNLWe3hqUfBEDzjnzbqsfrSGUw63XjTmmHb073JrdkU/iIHUwi1y AOyBfzNEu2tR6s8RzF/DSq7otnT/7RSU6Tc4lW42EmkMhNUMZ1IkrDBff2RoR9/Wywo3 6TpA== 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=VF1Z6l0IbpzY9s0IFYKQ4DO9qjHRXBU3M4HJxWlGq40=; fh=WoEaHOY90frnWnyTNZPe0RVSUkBoS9rtKdOjPVXs3XM=; b=0Q1L+1SXsFeeWy0nyiPUbD+5dmt4AHNfoa0n3jRsBGg9YEbEeLy1ULLgKt2TFsoYT2 0ZcXkunDSl2P9+h0L3zwftK3tL2ypltjwlY1KM5psbAvJN4RQ+kpuHNwQrejQRhufVh7 8oFjle5HJsXrEjl9HmeOZ1Q6REm466RFyeFShShAvOQ8ITNqcaEOxkoEBLfvkTM4drOI IiCgS+Fr2rBvzEwgAR3C616DtdgZbceDWmejJTt5Tul05/RyJ8cI3P3jZfDPcrlOsQAB B9kRu6hc6Tjtw96QF3b1oQeGO6A6qn6QeZ2sgkO5681rZRuPdGzW6si/8a1cJ9mHgS4w aJnQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kYj2yylc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-31382-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31382-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pj26-20020a05620a1d9a00b0078324088f06si16181946qkn.686.2024.01.19.08.54.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 08:54:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31382-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kYj2yylc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-31382-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31382-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 325851C2431F for ; Fri, 19 Jan 2024 16:54:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90C6D5579D; Fri, 19 Jan 2024 16:54:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kYj2yylc" 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 ACCA855779; Fri, 19 Jan 2024 16:54:42 +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=1705683282; cv=none; b=Arb032wR+mT3ca9KJb/eke2V3OIA0TDqhOi0Sb0FOUp/2zbm1TuSMUumOIFDm4dCkA0CBaUmRjsMQX84/W6/bxWlvkhEMs7u5w5CjD6J7HGQN3PKwcFA4y0DvU6Ekr3gpbYgPrrT3IgNasRtgBrq6e5vrXKhVwhIDUs7quUUbus= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705683282; c=relaxed/simple; bh=VF1Z6l0IbpzY9s0IFYKQ4DO9qjHRXBU3M4HJxWlGq40=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Uy8jJDkzqNAOExvTUJr7KBXuCxDdAAYzoapPevmCRYhAdJCHyweGryXDBdpZPCFsIYA9jQfMfTn+tJV5xQ5aJCh0QckJoPnBaaQgtOC8R1Y0ep7/zskWQz+63j5rW2FoPOeFH6b9DwI7MTKSQWVyyWZXUl7ATw1oXRSHWz45b6k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kYj2yylc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F08DBC433C7; Fri, 19 Jan 2024 16:54:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705683282; bh=VF1Z6l0IbpzY9s0IFYKQ4DO9qjHRXBU3M4HJxWlGq40=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kYj2yylcbYD0c/JE4Hkfjkc9xVn3OuvjAl1IxoAQv88c9FbUcsW8FkiubfOGa7kW4 bpLFNFo5DrzbuwvaxdtBITnaSPmXF4DLNMsN0hkMYeZM7HTCfY+mSny39OG/E93wtv XVw79kvP+kXZE8ofANGnqejrywYEibHBF9CrcMgMtufb5lJyc66CXH0uuPXLMZTLsh Wsye1bhUr+FUrCsQcMvkGlirmSqb8c164AsRfouFc3j7rG+uy2MhUrlwNOXu81kgBB o6vQfFaGZB8RIOeAlcqswaD310RW6h8Ozr5hyvtR1djAKFu48XIZcSTV5j7JsyqAgT JYcWLk6pOocpg== Date: Fri, 19 Jan 2024 16:54:36 +0000 From: Conor Dooley To: Nuno =?iso-8859-1?Q?S=E1?= Cc: Conor Dooley , "Paller, Kim Seer" , "linux-iio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Jonathan Cameron , Lars-Peter Clausen , "Hennerich, Michael" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Crt Mori , Linus Walleij , Bartosz Golaszewski Subject: Re: [PATCH v6 1/2] dt-bindings: iio: frequency: add admfm2000 Message-ID: <20240119-mammary-another-f060e43bcdf7@spud> References: <20240118085856.70758-1-kimseer.paller@analog.com> <20240118085856.70758-2-kimseer.paller@analog.com> <20240118-steadily-coauthor-de8275118901@spud> <0f32caa9a11305333f1f18b97c97d775f4a5bb9a.camel@gmail.com> <20240119-squad-unflawed-934627f0e394@wendy> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9HBH4EAVsLhP8n6J" Content-Disposition: inline In-Reply-To: --9HBH4EAVsLhP8n6J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > > Hmmm, How is the enum easier than a boolean property :)? I guess the = device has a > > > default mode. So, if it is Direct IF mode you have 'adi,mixer-mode' t= o enable > > > that > > > mode and that's it. So the code is pretty much just: > > >=20 > > > if (device_property_read_bool()) { > >=20 > > device_property_present() is preferred I think. > >=20 >=20 > Hmm, don't want to start an argument but I'm not sure either :). I would = argue that > device_property_read_bool() has more users (according to git grep - and i= f I did not > mess the grep) and it pretty much wraps device_property_present(). So, if= there was > no value in it's "meaning" we would/should stop using it and eventually d= rop it... > Anyways, not really a big deal. If there's an actually boolean property that can have a true/false value, but testing for presence alone device_property_present() is the more accurate function to use. --9HBH4EAVsLhP8n6J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZaqpTAAKCRB4tDGHoIJi 0rEOAP9G83tYMDwHe1/1SOd5SpfVPcFG+kAljyMoNIrOdxisAgD7BEnEbR6UIAWO ci9GeMpBvOEMHO1eTPxQz6drAG7c1wk= =+I9X -----END PGP SIGNATURE----- --9HBH4EAVsLhP8n6J--