Skip to content

Commit e66b0a8

Browse files
jhovoldAndi Shyti
authored andcommitted
i2c: omap: fix deprecated of_property_read_bool() use
Using of_property_read_bool() for non-boolean properties is deprecated and results in a warning during runtime since commit c141ecc ("of: Warn when of_property_read_bool() is used on non-boolean properties"). Fixes: b6ef830 ("i2c: omap: Add support for setting mux") Cc: Jayesh Choudhary <j-choudhary@ti.com> Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Acked-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com> Link: https://lore.kernel.org/r/20250415075230.16235-1-johan+linaro@kernel.org Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
1 parent 92a09c4 commit e66b0a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-omap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ omap_i2c_probe(struct platform_device *pdev)
14541454
(1000 * omap->speed / 8);
14551455
}
14561456

1457-
if (of_property_read_bool(node, "mux-states")) {
1457+
if (of_property_present(node, "mux-states")) {
14581458
struct mux_state *mux_state;
14591459

14601460
mux_state = devm_mux_state_get(&pdev->dev, NULL);

0 commit comments

Comments
 (0)