diff options
author | Rob Herring <robh@kernel.org> | 2023-03-10 08:47:05 -0600 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2023-03-30 13:46:07 -0500 |
commit | e27a85c1757655e2e7bd09164b87bf75627e5604 (patch) | |
tree | e7a067bc36488b2620e0f0d7d5371bdadff2920b /drivers/gpu/drm/bridge | |
parent | b2d2d8decc8d239875420af6e412158ac5a2cb1f (diff) | |
download | linux-stable-e27a85c1757655e2e7bd09164b87bf75627e5604.tar.gz linux-stable-e27a85c1757655e2e7bd09164b87bf75627e5604.tar.bz2 linux-stable-e27a85c1757655e2e7bd09164b87bf75627e5604.zip |
drm: 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 of_property_read_bool().
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20230310144706.1542295-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/bridge')
-rw-r--r-- | drivers/gpu/drm/bridge/parade-ps8622.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/parade-ps8622.c b/drivers/gpu/drm/bridge/parade-ps8622.c index 530ee6a19e7e..efa80e309b98 100644 --- a/drivers/gpu/drm/bridge/parade-ps8622.c +++ b/drivers/gpu/drm/bridge/parade-ps8622.c @@ -496,7 +496,7 @@ static int ps8622_probe(struct i2c_client *client) ps8622->lane_count = ps8622->max_lane_count; } - if (!of_find_property(dev->of_node, "use-external-pwm", NULL)) { + if (!of_property_read_bool(dev->of_node, "use-external-pwm")) { ps8622->bl = backlight_device_register("ps8622-backlight", dev, ps8622, &ps8622_backlight_ops, NULL); |