]> Git Repo - linux.git/commitdiff
i2c: qup: use generic device property accessors
authorBartosz Golaszewski <[email protected]>
Tue, 8 Oct 2024 16:09:47 +0000 (18:09 +0200)
committerWolfram Sang <[email protected]>
Sun, 24 Nov 2024 15:03:50 +0000 (16:03 +0100)
There's no reason for this driver to use OF-specific property helpers.
Drop the last one in favor of the generic variant and no longer include
of.h.

Signed-off-by: Bartosz Golaszewski <[email protected]>
Reviewed-by: Neil Armstrong <[email protected]>
Signed-off-by: Andi Shyti <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
drivers/i2c/busses/i2c-qup.c

index 86ec391616b06fba0a5a333776e2d009828cf3f1..da20b4487c9a54be137251a6f0e36a12a4e3088b 100644 (file)
@@ -17,9 +17,9 @@
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/module.h>
-#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
+#include <linux/property.h>
 #include <linux/scatterlist.h>
 
 /* QUP Registers */
@@ -1683,7 +1683,7 @@ static int qup_i2c_probe(struct platform_device *pdev)
                }
        }
 
-       if (of_device_is_compatible(pdev->dev.of_node, "qcom,i2c-qup-v1.1.1")) {
+       if (device_is_compatible(&pdev->dev, "qcom,i2c-qup-v1.1.1")) {
                qup->adap.algo = &qup_i2c_algo;
                qup->adap.quirks = &qup_i2c_quirks;
                is_qup_v1 = true;
This page took 0.055241 seconds and 4 git commands to generate.