Commit ac753e1
tty: atmel_serial: Use of_property_present() for non-boolean properties
The use of of_property_read_bool() for non-boolean properties is
deprecated in favor of of_property_present() when testing for property
presence.
As of_property_present() returns a boolean, use that directly
and simplify the code a bit while we're here.
Signed-off-by: Rob Herring (Arm) <[email protected]>
Acked-by: Richard Genoud <[email protected]>
Reviewed-by: Nicolas Ferre <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 104c1b9 commit ac753e1
1 file changed
+4
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1727 | 1727 | | |
1728 | 1728 | | |
1729 | 1729 | | |
1730 | | - | |
1731 | | - | |
1732 | | - | |
1733 | | - | |
1734 | | - | |
1735 | | - | |
1736 | | - | |
| 1730 | + | |
| 1731 | + | |
1737 | 1732 | | |
1738 | 1733 | | |
1739 | 1734 | | |
1740 | 1735 | | |
1741 | 1736 | | |
1742 | 1737 | | |
1743 | | - | |
1744 | | - | |
1745 | | - | |
1746 | | - | |
1747 | | - | |
1748 | | - | |
1749 | | - | |
| 1738 | + | |
| 1739 | + | |
1750 | 1740 | | |
1751 | 1741 | | |
1752 | 1742 | | |
| |||
0 commit comments