Commit e66b0a8f authored by Johan Hovold's avatar Johan Hovold Committed by Andi Shyti
Browse files

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 c141ecc3 ("of:
Warn when of_property_read_bool() is used on non-boolean properties").

Fixes: b6ef830c ("i2c: omap: Add support for setting mux")
Cc: Jayesh Choudhary <j-choudhary@ti.com>
Signed-off-by: default avatarJohan Hovold <johan+linaro@kernel.org>
Acked-by: default avatarMukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
Link: https://lore.kernel.org/r/20250415075230.16235-1-johan+linaro@kernel.org


Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent 92a09c47
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1454,7 +1454,7 @@ omap_i2c_probe(struct platform_device *pdev)
				       (1000 * omap->speed / 8);
	}

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

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