# 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 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2023/03/2129897
- Thread: https://ratatoskr.run/linux-devicetree/2023/03/2128268/t.md

```text
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

- [signature.asc](https://ratatoskr.run/linuxppc-dev/2023/03/2129897/attachment/0) (application/pgp-signature, 488 bytes)
