aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/fsl/imx-card.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-03-10 08:47:32 -0600
committerMark Brown <broonie@kernel.org>2023-03-11 12:18:55 +0000
commit2d2998b84330899bf88a0414f3356869be4a69eb (patch)
tree4248df6f725b5fe0b6c2c49ac3e80001747ee261 /sound/soc/fsl/imx-card.c
parentASoC: Use of_property_present() for testing DT property presence (diff)
downloadwireguard-linux-2d2998b84330899bf88a0414f3356869be4a69eb.tar.xz
wireguard-linux-2d2998b84330899bf88a0414f3356869be4a69eb.zip
ASoC: Use of_property_read_bool() for boolean properties
It is preferred to use typed property access functions (i.e. of_property_read_<type> functions) rather than low-level of_get_property/of_find_property functions for reading properties. Convert reading boolean properties to to of_property_read_bool(). Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20230310144733.1546413-1-robh@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/imx-card.c')
-rw-r--r--sound/soc/fsl/imx-card.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-card.c b/sound/soc/fsl/imx-card.c
index 3f128ced4180..64a4d7e9db60 100644
--- a/sound/soc/fsl/imx-card.c
+++ b/sound/soc/fsl/imx-card.c
@@ -563,7 +563,7 @@ static int imx_card_parse_of(struct imx_card_data *data)
link_data->cpu_sysclk_id = FSL_SAI_CLK_MAST1;
/* sai may support mclk/bclk = 1 */
- if (of_find_property(np, "fsl,mclk-equal-bclk", NULL)) {
+ if (of_property_read_bool(np, "fsl,mclk-equal-bclk")) {
link_data->one2one_ratio = true;
} else {
int i;