summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/tcx.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-03-10 08:47:30 -0600
committerHelge Deller <deller@gmx.de>2023-03-14 18:49:39 +0100
commit096dc32bb73d20e0854b3a471379f577f903f0ee (patch)
treeceb054ca9c5ccbc52a50d4f50cdc28ac9ff7ce95 /drivers/video/fbdev/tcx.c
parent7eb1220f4bde36a15b26e8f54480406c72081bfa (diff)
fbdev: 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> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video/fbdev/tcx.c')
-rw-r--r--drivers/video/fbdev/tcx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/fbdev/tcx.c b/drivers/video/fbdev/tcx.c
index 01d87f53324d..f2eaf6e7fff6 100644
--- a/drivers/video/fbdev/tcx.c
+++ b/drivers/video/fbdev/tcx.c
@@ -379,8 +379,7 @@ static int tcx_probe(struct platform_device *op)
spin_lock_init(&par->lock);
- par->lowdepth =
- (of_find_property(dp, "tcx-8-bit", NULL) != NULL);
+ par->lowdepth = of_property_read_bool(dp, "tcx-8-bit");
sbusfb_fill_var(&info->var, dp, 8);
info->var.red.length = 8;