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

From: Timur Tabi
Date: Fri Mar 31 2023 - 23:31:37 EST


On Fri, Mar 10, 2023 at 8:48 AM Rob Herring <robh@xxxxxxxxxx> 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@xxxxxxxxxx>
> ---
> 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@xxxxxxxxxx>