linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Switch i2c drivers back to use .probe()
@ 2023-05-25 20:56 Uwe Kleine-König
  2023-06-13  7:13 ` Uwe Kleine-König
  2023-07-03  5:26 ` Michael Ellerman
  0 siblings, 2 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2023-05-25 20:56 UTC (permalink / raw)
  To: Michael Ellerman, Scott Wood
  Cc: Marek Behún, Rob Herring, Crt Mori, linuxppc-dev,
	Nicholas Piggin, kernel, Hans Verkuil, Andy Shevchenko, Liang He

After commit b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
03c835f498b5 ("i2c: Switch .probe() to not take an id parameter")
convert back to (the new) .probe() to be able to eventually drop
.probe_new() from struct i2c_driver.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 arch/powerpc/platforms/44x/ppc476.c            | 2 +-
 arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/platforms/44x/ppc476.c b/arch/powerpc/platforms/44x/ppc476.c
index fbc6edad481f..164cbcd4588e 100644
--- a/arch/powerpc/platforms/44x/ppc476.c
+++ b/arch/powerpc/platforms/44x/ppc476.c
@@ -103,7 +103,7 @@ static struct i2c_driver avr_driver = {
 	.driver = {
 		.name = "akebono-avr",
 	},
-	.probe_new = avr_probe,
+	.probe = avr_probe,
 	.id_table = avr_id,
 };
 
diff --git a/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c b/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
index 77ed61306a73..4d8fa9ed1a67 100644
--- a/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
+++ b/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
@@ -211,7 +211,7 @@ static struct i2c_driver mcu_driver = {
 		.name = "mcu-mpc8349emitx",
 		.of_match_table = mcu_of_match_table,
 	},
-	.probe_new = mcu_probe,
+	.probe = mcu_probe,
 	.remove	= mcu_remove,
 	.id_table = mcu_ids,
 };

base-commit: ac9a78681b921877518763ba0e89202254349d1b
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] powerpc: Switch i2c drivers back to use .probe()
  2023-05-25 20:56 [PATCH] powerpc: Switch i2c drivers back to use .probe() Uwe Kleine-König
@ 2023-06-13  7:13 ` Uwe Kleine-König
  2023-07-03  5:26 ` Michael Ellerman
  1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2023-06-13  7:13 UTC (permalink / raw)
  To: Michael Ellerman, Scott Wood
  Cc: Marek Behún, Rob Herring, Crt Mori, Liang He,
	Nicholas Piggin, kernel, Hans Verkuil, Andy Shevchenko,
	linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1012 bytes --]

Hello,

On Thu, May 25, 2023 at 10:56:22PM +0200, Uwe Kleine-König wrote:
> After commit b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new()
> call-back type"), all drivers being converted to .probe_new() and then
> 03c835f498b5 ("i2c: Switch .probe() to not take an id parameter")
> convert back to (the new) .probe() to be able to eventually drop
> .probe_new() from struct i2c_driver.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Is there a chance to get this patch in before v6.5-rc1? I intend to
complete the conversion (i.e. drop .probe_new() from struct i2c_driver)
after v6.5-rc1. If this patch doesn't make it in, I'd include it in a
pull request for Wolfram's i2c tree early after v6.5-rc1. So if you
don't take it any more for the upcoming merge window, an ack would be
great.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] powerpc: Switch i2c drivers back to use .probe()
  2023-05-25 20:56 [PATCH] powerpc: Switch i2c drivers back to use .probe() Uwe Kleine-König
  2023-06-13  7:13 ` Uwe Kleine-König
@ 2023-07-03  5:26 ` Michael Ellerman
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Ellerman @ 2023-07-03  5:26 UTC (permalink / raw)
  To: Scott Wood, Uwe Kleine-König
  Cc: Marek Behún, Rob Herring, Crt Mori, Liang He,
	Nicholas Piggin, kernel, Hans Verkuil, Andy Shevchenko,
	linuxppc-dev

On Thu, 25 May 2023 22:56:22 +0200, Uwe Kleine-König wrote:
> After commit b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new()
> call-back type"), all drivers being converted to .probe_new() and then
> 03c835f498b5 ("i2c: Switch .probe() to not take an id parameter")
> convert back to (the new) .probe() to be able to eventually drop
> .probe_new() from struct i2c_driver.
> 
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc: Switch i2c drivers back to use .probe()
      https://git.kernel.org/powerpc/c/48f2444eb4dc0f3de9146f7278e859fa6b5e568b

cheers

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-03  6:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-25 20:56 [PATCH] powerpc: Switch i2c drivers back to use .probe() Uwe Kleine-König
2023-06-13  7:13 ` Uwe Kleine-König
2023-07-03  5:26 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).