]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.12-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jul 2025 12:26:15 +0000 (14:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jul 2025 12:26:15 +0000 (14:26 +0200)
added patches:
i2c-omap-fix-deprecated-of_property_read_bool-use.patch

queue-6.12/i2c-omap-fix-deprecated-of_property_read_bool-use.patch [new file with mode: 0644]
queue-6.12/series

diff --git a/queue-6.12/i2c-omap-fix-deprecated-of_property_read_bool-use.patch b/queue-6.12/i2c-omap-fix-deprecated-of_property_read_bool-use.patch
new file mode 100644 (file)
index 0000000..4a1f84a
--- /dev/null
@@ -0,0 +1,35 @@
+From e66b0a8f048bc8590eb1047480f946898a3f80c9 Mon Sep 17 00:00:00 2001
+From: Johan Hovold <johan+linaro@kernel.org>
+Date: Tue, 15 Apr 2025 09:52:30 +0200
+Subject: i2c: omap: fix deprecated of_property_read_bool() use
+
+From: Johan Hovold <johan+linaro@kernel.org>
+
+commit e66b0a8f048bc8590eb1047480f946898a3f80c9 upstream.
+
+Using of_property_read_bool() for non-boolean properties is deprecated
+and results in a warning during runtime since commit c141ecc3cecd ("of:
+Warn when of_property_read_bool() is used on non-boolean properties").
+
+Fixes: b6ef830c60b6 ("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>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/i2c/busses/i2c-omap.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/i2c/busses/i2c-omap.c
++++ b/drivers/i2c/busses/i2c-omap.c
+@@ -1454,7 +1454,7 @@ omap_i2c_probe(struct platform_device *p
+                                      (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);
index 21530170983f660f1bcce872948adc9e606f6811..f672cdd9b3fc737e1b3ef4fb084841dd21b2a2e8 100644 (file)
@@ -151,3 +151,4 @@ selftests-bpf-set-test-path-for-token-obj_priv_implicit_token_envvar.patch
 i2c-omap-add-support-for-setting-mux.patch
 i2c-omap-fix-an-error-handling-path-in-omap_i2c_probe.patch
 i2c-omap-handle-omap_i2c_init-errors-in-omap_i2c_probe.patch
+i2c-omap-fix-deprecated-of_property_read_bool-use.patch