backlight: as3711: Use of_property_read_bool() for boolean properties
authorRob Herring <robh@kernel.org>
Fri, 10 Mar 2023 14:47:31 +0000 (08:47 -0600)
committerLee Jones <lee@kernel.org>
Thu, 16 Mar 2023 16:12:53 +0000 (16:12 +0000)
commitfb200218b40b7864f64f1a47de61e035d8934e92
tree1f53ca9b010876c1dc6dc7642feecca93f1a762c
parent796bf946c42644b047c5ad5575906ff9c397fbda
backlight: as3711: Use of_property_read_bool() for boolean properties

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>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230310144731.1546190-1-robh@kernel.org
drivers/video/backlight/as3711_bl.c