From: Greg Kroah-Hartman Date: Tue, 22 Jul 2025 12:26:05 +0000 (+0200) Subject: 6.6-stable patches X-Git-Tag: v6.1.147~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=26e863c4fb290145986f5442333ddce8d69500ca;p=thirdparty%2Fkernel%2Fstable-queue.git 6.6-stable patches added patches: i2c-omap-fix-deprecated-of_property_read_bool-use.patch --- diff --git a/queue-6.6/i2c-omap-fix-deprecated-of_property_read_bool-use.patch b/queue-6.6/i2c-omap-fix-deprecated-of_property_read_bool-use.patch new file mode 100644 index 0000000000..e50c007990 --- /dev/null +++ b/queue-6.6/i2c-omap-fix-deprecated-of_property_read_bool-use.patch @@ -0,0 +1,35 @@ +From e66b0a8f048bc8590eb1047480f946898a3f80c9 Mon Sep 17 00:00:00 2001 +From: Johan Hovold +Date: Tue, 15 Apr 2025 09:52:30 +0200 +Subject: i2c: omap: fix deprecated of_property_read_bool() use + +From: Johan Hovold + +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 +Signed-off-by: Johan Hovold +Acked-by: Mukesh Kumar Savaliya +Link: https://lore.kernel.org/r/20250415075230.16235-1-johan+linaro@kernel.org +Signed-off-by: Andi Shyti +Signed-off-by: Greg Kroah-Hartman +--- + 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 +@@ -1457,7 +1457,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); diff --git a/queue-6.6/series b/queue-6.6/series index 24a0283f9f..2d767cffab 100644 --- a/queue-6.6/series +++ b/queue-6.6/series @@ -107,3 +107,4 @@ regulator-pwm-regulator-manage-boot-on-with-disabled-pwm-channels.patch asoc-fsl_sai-force-a-software-reset-when-starting-in-consumer-mode.patch revert-selftests-bpf-adjust-dummy_st_ops_success-to-detect-additional-error.patch revert-selftests-bpf-dummy_st_ops-should-reject-0-for-non-nullable-params.patch +i2c-omap-fix-deprecated-of_property_read_bool-use.patch