[PATCH] serial: Use of_property_read_bool() for boolean properties

Timur Tabi timur at kernel.org
Fri Mar 31 20:30:50 PDT 2023


On Fri, Mar 10, 2023 at 8:48 AM Rob Herring <robh at kernel.org> 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 at kernel.org>
> ---
>  drivers/tty/serial/imx.c       | 14 +++++---------
>  drivers/tty/serial/mxs-auart.c |  4 ++--
>  drivers/tty/serial/ucc_uart.c  |  2 +-

ucc_uart.c portion:

Acked-by: Timur Tabi <timur at kernel.org>



More information about the linux-arm-kernel mailing list