summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2025-04-15 09:52:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-24 08:56:37 +0200
commit7258b437d55d39467706e8ebd4f05b1361a827d1 (patch)
tree5946e30f251bd1dcdbbbab903fb0ca8f325d153d /drivers/i2c
parentf701716812cb42567fe385d1ea397559be78f9ea (diff)
downloadlinux-7258b437d55d39467706e8ebd4f05b1361a827d1.tar.gz
linux-7258b437d55d39467706e8ebd4f05b1361a827d1.tar.bz2
linux-7258b437d55d39467706e8ebd4f05b1361a827d1.zip
i2c: omap: fix deprecated of_property_read_bool() use
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-omap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 5f1e4ee098c9..0bdee43dc134 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -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);