Re: [PATCH] net: Use of_property_read_bool() for boolean properties

From
Marc Kleine-Budde <mkl@pengutronix.de>
Date
2023-03-12 10:18:20
Also in
linux-arm-kernel, linux-can, linux-devicetree, linux-omap, linux-wireless, linuxppc-dev, lkml
Reply to
Rob Herring, 2023-03-10
On 10.03.2023 08:47:16, Rob Herring wrote:
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>
---
 drivers/net/can/cc770/cc770_platform.c          | 12 ++++++------
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> # for net/can

regards,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

Attachments

Thread (8 messages) 8 messages, 6 authors, last reply 2023-03-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help