From nobody Sun Nov 24 16:05:08 2024 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 BF1501CC899 for ; Mon, 4 Nov 2024 19:07:04 +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=1730747224; cv=none; b=uKYkk/UV8GuWyU7YTGZixhqU3W19KImTkiuChcZU5LRmzrpb0ovh05bet/f3FGgMLSiVH2XZjPFVLrk4VAd4q8LD6P3aUFvdM04vfHEIQmAgasumyHXJzVxLu/UWGBXPH4+Oy6P9vgGM653dZuIFU4dqEC+rOyf4cXLsEqPd0sU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730747224; c=relaxed/simple; bh=Dl0TMpSb2eAzhg61AwTW0r0i9OW2iff6l56nxYhwNq0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Vc4VtC1tFcyKjRncXlIvf8fAxxqILq8M5qkOwVtnwLXFcajxpctP7t04mI06aYYhEWchNJm+ctNwZXAuKp5yZ3wa6bbGagSaWwkYPlOLDO2gO/FrgiSsO6LwIF7kVzvcvChfdPBOYMc1c3sr6R2vQjwF8yjT42pTN7BRrIwu0ww= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UGOiEUyh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UGOiEUyh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28193C4CED0; Mon, 4 Nov 2024 19:07:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1730747224; bh=Dl0TMpSb2eAzhg61AwTW0r0i9OW2iff6l56nxYhwNq0=; h=From:To:Cc:Subject:Date:From; b=UGOiEUyhyhHRCJ+RkTlev41cqWdhI+paCp1rekR5Lz075hpnzNynja9Vj1qOBXafp fSTuXdIxDf8XcLcddBl2KCcf6YfU+SxFzp67Z0Kbw/6MbQi9HdNDkOCLKivIPAcTQq LUYD7BMeEt6cCZz07lVm3noE29xw/2JnYZVz3laryy34jukjejO1x+n40HuKMsJXGj IUzzwlcIRHTzbcu27xa7TnxPrlb4+zGkn+6fVGdtbQeXs0lTti9QN11Je2gHWuNWTD iiaKD0UWAUjudL1VgbQsa+jg2eLqZvCQbivXQ0aZghGIdN/Tl4iyiZSLMmLITqiLle a03WV8bpJoUbQ== From: "Rob Herring (Arm)" To: Claudiu Beznea , Arnd Bergmann , Greg Kroah-Hartman , Nicolas Ferre , Alexandre Belloni Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] misc: atmel-ssc: Use of_property_present() for non-boolean properties Date: Mon, 4 Nov 2024 13:06:59 -0600 Message-ID: <20241104190700.275573-1-robh@kernel.org> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The use of of_property_read_bool() for non-boolean properties is deprecated in favor of of_property_present() when testing for property presence. Signed-off-by: Rob Herring (Arm) Reviewed-by: Hari Prasath Gujulan Elango --- drivers/misc/atmel-ssc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c index 6eac0f335915..1d0322dfaf79 100644 --- a/drivers/misc/atmel-ssc.c +++ b/drivers/misc/atmel-ssc.c @@ -153,7 +153,7 @@ static int ssc_sound_dai_probe(struct ssc_device *ssc) =20 ssc->sound_dai =3D false; =20 - if (!of_property_read_bool(np, "#sound-dai-cells")) + if (!of_property_present(np, "#sound-dai-cells")) return 0; =20 id =3D of_alias_get_id(np, "ssc"); @@ -176,7 +176,7 @@ static void ssc_sound_dai_remove(struct ssc_device *ssc) #else static inline int ssc_sound_dai_probe(struct ssc_device *ssc) { - if (of_property_read_bool(ssc->pdev->dev.of_node, "#sound-dai-cells")) + if (of_property_present(ssc->pdev->dev.of_node, "#sound-dai-cells")) return -ENOTSUPP; =20 return 0; --=20 2.45.2