fsl/qe: use of_property_read_bool
authorJulia Lawall <julia.lawall@lip6.fr>
Fri, 5 Aug 2016 08:56:41 +0000 (10:56 +0200)
committerScott Wood <oss@buserror.net>
Sun, 25 Sep 2016 07:38:51 +0000 (02:38 -0500)
commit74c269f69cdae83253be7f65840dd1ae589d5e99
tree0ed7d6e89891c5871dec045dd1132c0c9cd62bb9
parent7120438e5d82f445acbfe131a1b58eab7e83fa33
fsl/qe: 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: Scott Wood <oss@buserror.net>
drivers/soc/fsl/qe/qe_tdm.c