Thread (2 messages) 2 messages, 2 authors, 2023-03-13

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

From: Richard Leitner <hidden>
Date: 2023-03-13 07:40:12
Also in: linux-devicetree, linux-usb, lkml

On Fri, Mar 10, 2023 at 08:47:28AM -0600, 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/usb/chipidea/ci_hdrc_imx.c |  6 +++---
 drivers/usb/chipidea/core.c        |  2 +-
 drivers/usb/dwc2/params.c          |  3 +--
 drivers/usb/host/ehci-ppc-of.c     |  6 +++---
 drivers/usb/host/fsl-mph-dr-of.c   |  7 ++-----
 drivers/usb/misc/usb251xb.c        | 33 ++++++++++++++----------------
 6 files changed, 25 insertions(+), 32 deletions(-)
Thanks for the patch. Please feel free to add

Reviewed-by: Richard Leitner <richard.leitner@skidata.com>

for the usb251xb changes.

regards;rl

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help