]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: use of_property_read_bool
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 5 Aug 2016 08:56:51 +0000 (10:56 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 8 Aug 2016 10:55:05 +0000 (11:55 +0100)
commit2d60cf3b83c1ba8cce9dc5840f0a7c0602cb00f8
tree656919932cd14057e3d2e04c0f1328d140ed9d13
parentb482605f7939bd4035b2d11a7952dc3da5821c6d
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>
sound/soc/codecs/ab8500-codec.c
sound/soc/sh/rcar/ssi.c
sound/soc/soc-core.c