projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
631e9d4
)
ASoC: samsung: odroid: use of_property_present to check for property
author
Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org>
Thu, 10 Aug 2023 06:32:55 +0000
(08:32 +0200)
committer
Mark Brown
<broonie@kernel.org>
Wed, 16 Aug 2023 13:47:16 +0000
(14:47 +0100)
"samsung,audio-widgets" and "samsung,audio-routing" are not boolean
properties, thus more appropriate is to use of_property_present() to
check if they are present.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link:
https://lore.kernel.org/r/20230810063300.20151-7-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/odroid.c
patch
|
blob
|
history
diff --git
a/sound/soc/samsung/odroid.c
b/sound/soc/samsung/odroid.c
index a5442592bde4da26398fa6e7a69bb0e5f791f169..1743bd55ba1a3148c650a12f969f9676cb4ae2bb 100644
(file)
--- a/
sound/soc/samsung/odroid.c
+++ b/
sound/soc/samsung/odroid.c
@@
-223,14
+223,14
@@
static int odroid_audio_probe(struct platform_device *pdev)
if (ret < 0)
return ret;
- if (of_property_
read_bool
(dev->of_node, "samsung,audio-widgets")) {
+ if (of_property_
present
(dev->of_node, "samsung,audio-widgets")) {
ret = snd_soc_of_parse_audio_simple_widgets(card,
"samsung,audio-widgets");
if (ret < 0)
return ret;
}
- if (of_property_
read_bool
(dev->of_node, "samsung,audio-routing")) {
+ if (of_property_
present
(dev->of_node, "samsung,audio-routing")) {
ret = snd_soc_of_parse_audio_routing(card,
"samsung,audio-routing");
if (ret < 0)