public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: Switch two more drivers back to use struct i2c_driver::probe
@ 2023-06-26  9:19 Uwe Kleine-König
  2023-06-26 12:01 ` Sahin, Okan
  2023-06-26 15:33 ` Lee Jones
  0 siblings, 2 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2023-06-26  9:19 UTC (permalink / raw)
  To: Julien Panis, Okan Sahin, Lee Jones; +Cc: Andy Shevchenko, linux-kernel, kernel

struct i2c_driver::probe_new is about to go away. Switch the driver to
use the probe callback with the same prototype.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/mfd/max77541.c    | 2 +-
 drivers/mfd/tps6594-i2c.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mfd/max77541.c b/drivers/mfd/max77541.c
index 4a3bad3493b3..e147e949c2b3 100644
--- a/drivers/mfd/max77541.c
+++ b/drivers/mfd/max77541.c
@@ -214,7 +214,7 @@ static struct i2c_driver max77541_driver = {
 		.name = "max77541",
 		.of_match_table = max77541_of_id,
 	},
-	.probe_new = max77541_probe,
+	.probe = max77541_probe,
 	.id_table = max77541_id,
 };
 module_i2c_driver(max77541_driver);
diff --git a/drivers/mfd/tps6594-i2c.c b/drivers/mfd/tps6594-i2c.c
index 50a3cd03b3b0..899c88c0fe77 100644
--- a/drivers/mfd/tps6594-i2c.c
+++ b/drivers/mfd/tps6594-i2c.c
@@ -235,7 +235,7 @@ static struct i2c_driver tps6594_i2c_driver = {
 		.name = "tps6594",
 		.of_match_table = tps6594_i2c_of_match_table,
 	},
-	.probe_new = tps6594_i2c_probe,
+	.probe = tps6594_i2c_probe,
 };
 module_i2c_driver(tps6594_i2c_driver);
 

base-commit: e0cbc202388af454eb771043b20db6dfe68199ec
-- 
2.39.2


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

* RE: [PATCH] mfd: Switch two more drivers back to use struct i2c_driver::probe
  2023-06-26  9:19 [PATCH] mfd: Switch two more drivers back to use struct i2c_driver::probe Uwe Kleine-König
@ 2023-06-26 12:01 ` Sahin, Okan
  2023-06-26 12:18   ` Uwe Kleine-König
  2023-06-26 15:33 ` Lee Jones
  1 sibling, 1 reply; 4+ messages in thread
From: Sahin, Okan @ 2023-06-26 12:01 UTC (permalink / raw)
  To: Uwe Kleine-König, Julien Panis, Lee Jones
  Cc: Andy Shevchenko, linux-kernel@vger.kernel.org,
	kernel@pengutronix.de

>Sent: Monday, June 26, 2023 12:20 PM
>To: Julien Panis <jpanis@baylibre.com>; Sahin, Okan <Okan.Sahin@analog.com>; Lee
>Jones <lee@kernel.org>
>Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>; linux-
>kernel@vger.kernel.org; kernel@pengutronix.de
>Subject: [PATCH] mfd: Switch two more drivers back to use struct i2c_driver::probe
>
>[External]
>
>struct i2c_driver::probe_new is about to go away. Switch the driver to
>use the probe callback with the same prototype.
>
>Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
>---
> drivers/mfd/max77541.c    | 2 +-
> drivers/mfd/tps6594-i2c.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/drivers/mfd/max77541.c b/drivers/mfd/max77541.c
>index 4a3bad3493b3..e147e949c2b3 100644
>--- a/drivers/mfd/max77541.c
>+++ b/drivers/mfd/max77541.c
>@@ -214,7 +214,7 @@ static struct i2c_driver max77541_driver = {
> 		.name = "max77541",
> 		.of_match_table = max77541_of_id,
> 	},
>-	.probe_new = max77541_probe,
>+	.probe = max77541_probe,
> 	.id_table = max77541_id,
> };
> module_i2c_driver(max77541_driver);
>diff --git a/drivers/mfd/tps6594-i2c.c b/drivers/mfd/tps6594-i2c.c
>index 50a3cd03b3b0..899c88c0fe77 100644
>--- a/drivers/mfd/tps6594-i2c.c
>+++ b/drivers/mfd/tps6594-i2c.c
>@@ -235,7 +235,7 @@ static struct i2c_driver tps6594_i2c_driver = {
> 		.name = "tps6594",
> 		.of_match_table = tps6594_i2c_of_match_table,
> 	},
>-	.probe_new = tps6594_i2c_probe,
>+	.probe = tps6594_i2c_probe,
> };
> module_i2c_driver(tps6594_i2c_driver);
>
>
>base-commit: e0cbc202388af454eb771043b20db6dfe68199ec
>--
>2.39.2

Hi Lee,

Should I update the code then resend patch again? Or should I send another patch after merge is completed?

Regards,
Okan Sahin

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

* Re: [PATCH] mfd: Switch two more drivers back to use struct i2c_driver::probe
  2023-06-26 12:01 ` Sahin, Okan
@ 2023-06-26 12:18   ` Uwe Kleine-König
  0 siblings, 0 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2023-06-26 12:18 UTC (permalink / raw)
  To: Sahin, Okan
  Cc: Julien Panis, Lee Jones, Andy Shevchenko,
	linux-kernel@vger.kernel.org, kernel@pengutronix.de

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

On Mon, Jun 26, 2023 at 12:01:16PM +0000, Sahin, Okan wrote:
> >Sent: Monday, June 26, 2023 12:20 PM
> >To: Julien Panis <jpanis@baylibre.com>; Sahin, Okan <Okan.Sahin@analog.com>; Lee
> >Jones <lee@kernel.org>
> >Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>; linux-
> >kernel@vger.kernel.org; kernel@pengutronix.de
> >Subject: [PATCH] mfd: Switch two more drivers back to use struct i2c_driver::probe
> >
> >[External]
> >
> >struct i2c_driver::probe_new is about to go away. Switch the driver to
> >use the probe callback with the same prototype.
> >
> >Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> >---
> > drivers/mfd/max77541.c    | 2 +-
> > drivers/mfd/tps6594-i2c.c | 2 +-
> > 2 files changed, 2 insertions(+), 2 deletions(-)
> >
> >diff --git a/drivers/mfd/max77541.c b/drivers/mfd/max77541.c
> >index 4a3bad3493b3..e147e949c2b3 100644
> >--- a/drivers/mfd/max77541.c
> >+++ b/drivers/mfd/max77541.c
> >@@ -214,7 +214,7 @@ static struct i2c_driver max77541_driver = {
> > 		.name = "max77541",
> > 		.of_match_table = max77541_of_id,
> > 	},
> >-	.probe_new = max77541_probe,
> >+	.probe = max77541_probe,
> > 	.id_table = max77541_id,
> > };
> > module_i2c_driver(max77541_driver);
> >diff --git a/drivers/mfd/tps6594-i2c.c b/drivers/mfd/tps6594-i2c.c
> >index 50a3cd03b3b0..899c88c0fe77 100644
> >--- a/drivers/mfd/tps6594-i2c.c
> >+++ b/drivers/mfd/tps6594-i2c.c
> >@@ -235,7 +235,7 @@ static struct i2c_driver tps6594_i2c_driver = {
> > 		.name = "tps6594",
> > 		.of_match_table = tps6594_i2c_of_match_table,
> > 	},
> >-	.probe_new = tps6594_i2c_probe,
> >+	.probe = tps6594_i2c_probe,
> > };
> > module_i2c_driver(tps6594_i2c_driver);
> >
> >
> >base-commit: e0cbc202388af454eb771043b20db6dfe68199ec
> >--
> >2.39.2
> 
> Should I update the code then resend patch again? Or should I send another patch after merge is completed?

I'm not Lee, but I'll try an answer anyhow: Your patch is in next (via
Lee's tree) as commit e0cbc202388af454eb771043b20db6dfe68199ec. So I
guess Lee will keep the patch as is and send it to Linus. There is
nothing grave wrong, so no need to revert or rewrite the tree. I expect
Lee to just apply my patch on top of his tree.

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] 4+ messages in thread

* Re: [PATCH] mfd: Switch two more drivers back to use struct i2c_driver::probe
  2023-06-26  9:19 [PATCH] mfd: Switch two more drivers back to use struct i2c_driver::probe Uwe Kleine-König
  2023-06-26 12:01 ` Sahin, Okan
@ 2023-06-26 15:33 ` Lee Jones
  1 sibling, 0 replies; 4+ messages in thread
From: Lee Jones @ 2023-06-26 15:33 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Julien Panis, Okan Sahin, Andy Shevchenko, linux-kernel, kernel

On Mon, 26 Jun 2023, Uwe Kleine-König wrote:

> struct i2c_driver::probe_new is about to go away. Switch the driver to
> use the probe callback with the same prototype.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  drivers/mfd/max77541.c    | 2 +-
>  drivers/mfd/tps6594-i2c.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Applied, thanks

-- 
Lee Jones [李琼斯]

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

end of thread, other threads:[~2023-06-26 15:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-26  9:19 [PATCH] mfd: Switch two more drivers back to use struct i2c_driver::probe Uwe Kleine-König
2023-06-26 12:01 ` Sahin, Okan
2023-06-26 12:18   ` Uwe Kleine-König
2023-06-26 15:33 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox