lkml.org 
[lkml]   [2023]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] serial: Use of_property_read_bool() for boolean properties
On Fri, Mar 10, 2023 at 8:48 AM Rob Herring <robh@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@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@kernel.org>

\
 
 \ /
  Last update: 2023-04-01 05:32    [W:0.044 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site