Skip to contentSkip to conversation

clk: vc5: Use device_get_match_data() instead of of_device_get_match_data()

PATCH Applied Marek Vasut 3 participants 6 messages May 14, 2023 – Jun 9, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 clk: vc5: Use device_get_match_data() instead of of_device_get_match_data()

Use device_get_match_data() which, unlike of_device_get_match_data(), is compatible with other firmware interfaces than just OF.

---
Cc: Alex Helms <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Luca Ceresoli <[email protected]>
Cc: Magnus Damm <[email protected]>
Cc: Michael Turquette <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: Nick Desaulniers <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Tom Rix <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
V2: - Explicitly include linux/property.h
- Add RB from Luca

---
 drivers/clk/clk-versaclock5.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clk/clk-versaclock5.c +2 -1
index 5452471b7ba5..28ef1e9a3c56 100644
@@ -20,6 +20,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_platform.h>
+#include <linux/property.h>
 #include <linux/regmap.h>
 #include <linux/slab.h>
 
@@ -953,7 +954,7 @@ static int vc5_probe(struct i2c_client *client)
 
 	i2c_set_clientdata(client, vc5);
 	vc5->client = client;
-	vc5->chip_info = of_device_get_match_data(&client->dev);
+	vc5->chip_info = device_get_match_data(&client->dev);
 
 	vc5->pin_xin = devm_clk_get(&client->dev, "xin");
 	if (PTR_ERR(vc5->pin_xin) == -EPROBE_DEFER)
Signature · 1 line
2.39.2
#1 lore raw

PATCH v2 2/2 clk: vc7: Use device_get_match_data() instead of of_device_get_match_data()

Use device_get_match_data() which, unlike of_device_get_match_data(), is compatible with other firmware interfaces than just OF.

---
Cc: Alex Helms <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Luca Ceresoli <[email protected]>
Cc: Magnus Damm <[email protected]>
Cc: Michael Turquette <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: Nick Desaulniers <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Tom Rix <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
V2: Explicitly include linux/property.h

---
 drivers/clk/clk-versaclock7.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clk/clk-versaclock7.c +2 -1
index 0ae191f50b4b..42abd5da6675 100644
@@ -15,6 +15,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_platform.h>
+#include <linux/property.h>
 #include <linux/regmap.h>
 #include <linux/swab.h>
 
@@ -1108,7 +1109,7 @@ static int vc7_probe(struct i2c_client *client)
 
 	i2c_set_clientdata(client, vc7);
 	vc7->client = client;
-	vc7->chip_info = of_device_get_match_data(&client->dev);
+	vc7->chip_info = device_get_match_data(&client->dev);
 
 	vc7->pin_xin = devm_clk_get(&client->dev, "xin");
 	if (PTR_ERR(vc7->pin_xin) == -EPROBE_DEFER) {
Signature · 1 line
2.39.2
Reviewed-by on v2 2/2
#2 lore raw

Re: [PATCH v2 2/2] clk: vc7: Use device_get_match_data() instead of of_device_get_match_data()

Quoted 4 lines · Marek Vasut

Use device_get_match_data() which, unlike of_device_get_match_data(), is compatible with other firmware interfaces than just OF.

Quoted 14 lines

---
Cc: Alex Helms <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Luca Ceresoli <[email protected]>
Cc: Magnus Damm <[email protected]>
Cc: Michael Turquette <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: Nick Desaulniers <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Tom Rix <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
V2: Explicitly include linux/property.h

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
maintainer Applied
#3 lore raw

Re: [PATCH v2 2/2] clk: vc7: Use device_get_match_data() instead of of_device_get_match_data()

In reply to Marek Vasut

Quoting Marek Vasut (2023-05-14 12:19:59)

Quoted 5 lines

Use device_get_match_data() which, unlike of_device_get_match_data(), is compatible with other firmware interfaces than just OF.

---

Applied to clk-next

Reviewed-by on v2 1/2
#4 lore raw
In reply to Marek Vasut
Quoted 5 lines · Marek Vasut

Use device_get_match_data() which, unlike of_device_get_match_data(), is compatible with other firmware interfaces than just OF.

Quoted 15 lines

---
Cc: Alex Helms <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Luca Ceresoli <[email protected]>
Cc: Magnus Damm <[email protected]>
Cc: Michael Turquette <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: Nick Desaulniers <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Tom Rix <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
V2: - Explicitly include linux/property.h
- Add RB from Luca

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds