ASoC: use of_property_read_bool
Use of_property_read_bool to check for the existence of a property. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression e1,e2; statement S2,S1; @@ - if (of_get_property(e1,e2,NULL)) + if (of_property_read_bool(e1,e2)) S1 else S2 // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:

gecommit door
Mark Brown

bovenliggende
29b4817d40
commit
519302954b
@@ -928,7 +928,7 @@ int rsnd_ssi_probe(struct rsnd_priv *priv)
|
||||
}
|
||||
|
||||
ops = &rsnd_ssi_non_ops;
|
||||
if (of_get_property(np, "pio-transfer", NULL))
|
||||
if (of_property_read_bool(np, "pio-transfer"))
|
||||
ops = &rsnd_ssi_pio_ops;
|
||||
else
|
||||
ops = &rsnd_ssi_dma_ops;
|
||||
|
Verwijs in nieuw issue
Block a user