Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: 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/20230310144734.1546587-1-robh@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Rob Herring and committed by
Takashi Iwai
0d19bd4d d42c521f

+1 -1
+1 -1
sound/ppc/tumbler.c
··· 1361 1361 1362 1362 for_each_child_of_node(chip->node, np) { 1363 1363 if (of_node_name_eq(np, "sound")) { 1364 - if (of_get_property(np, "has-anded-reset", NULL)) 1364 + if (of_property_read_bool(np, "has-anded-reset")) 1365 1365 mix->anded_reset = 1; 1366 1366 if (of_property_present(np, "layout-id")) 1367 1367 mix->reset_on_sleep = 0;