clk: vc5: Use device_get_match_data() instead of of_device_get_match_data()
Subsystems (3)
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
@@ -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
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
@@ -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
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, unlikeof_device_get_match_data(), is compatible with other firmware interfaces than just OF.Signed-off-by Marek Vasut <[email protected]>
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 includelinux/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
Re: [PATCH v2 2/2] clk: vc7: Use device_get_match_data() instead of of_device_get_match_data()
In reply to Marek VasutQuoting Marek Vasut (2023-05-14 12:19:59)
Quoted 5 lines
Use
device_get_match_data()which, unlikeof_device_get_match_data(), is compatible with other firmware interfaces than just OF.Signed-off-by Marek Vasut <[email protected]>---
Applied to clk-next
Quoted 5 lines · Marek Vasut
Use
device_get_match_data()which, unlikeof_device_get_match_data(), is compatible with other firmware interfaces than just OF.Reviewed-by Luca Ceresoli <[email protected]>Signed-off-by Marek Vasut <[email protected]>
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 includelinux/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
Quoting Marek Vasut (2023-05-14 12:19:58)
Quoted 6 lines
Use
device_get_match_data()which, unlikeof_device_get_match_data(), is compatible with other firmware interfaces than just OF.Reviewed-by Luca Ceresoli <[email protected]>Signed-off-by Marek Vasut <[email protected]>---
Applied to clk-next