mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] fbdev: omapfb: Use of_property_present() to test existence of DT property
@ 2025-01-12 13:46 Krzysztof Kozlowski
  2025-01-12 13:46 ` [PATCH 2/2] fbdev: omapfb: Use syscon_regmap_lookup_by_phandle_args Krzysztof Kozlowski
  2025-01-12 17:13 ` [PATCH 1/2] fbdev: omapfb: Use of_property_present() to test existence of DT property Helge Deller
  0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-01-12 13:46 UTC (permalink / raw)
  To: Helge Deller, linux-omap, linux-fbdev, dri-devel, linux-kernel
  Cc: Rob Herring, Krzysztof Kozlowski

of_property_read_bool() should be used only on boolean properties.

Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/video/fbdev/omap2/omapfb/dss/dispc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dispc.c b/drivers/video/fbdev/omap2/omapfb/dss/dispc.c
index c3329c8b4c16..7010544e02e1 100644
--- a/drivers/video/fbdev/omap2/omapfb/dss/dispc.c
+++ b/drivers/video/fbdev/omap2/omapfb/dss/dispc.c
@@ -3933,7 +3933,7 @@ static int dispc_bind(struct device *dev, struct device *master, void *data)
 		return -ENODEV;
 	}
 
-	if (np && of_property_read_bool(np, "syscon-pol")) {
+	if (np && of_property_present(np, "syscon-pol")) {
 		dispc.syscon_pol = syscon_regmap_lookup_by_phandle(np, "syscon-pol");
 		if (IS_ERR(dispc.syscon_pol)) {
 			dev_err(&pdev->dev, "failed to get syscon-pol regmap\n");
-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-12 17:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-12 13:46 [PATCH 1/2] fbdev: omapfb: Use of_property_present() to test existence of DT property Krzysztof Kozlowski
2025-01-12 13:46 ` [PATCH 2/2] fbdev: omapfb: Use syscon_regmap_lookup_by_phandle_args Krzysztof Kozlowski
2025-01-12 17:13 ` [PATCH 1/2] fbdev: omapfb: Use of_property_present() to test existence of DT property Helge Deller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®