LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] i2c: i2c-kempld: deprecate class based instantiation
@ 2021-08-31 10:29 Michael Brunner
  2021-09-29 21:08 ` wsa
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Brunner @ 2021-08-31 10:29 UTC (permalink / raw)
  To: wsa; +Cc: linux, sameo, mibru, linux-i2c, linux-kernel, Ingmar Klein

Warn users that class based instantiation is going away soon in favour
of more robust probing and faster bootup times.

Class based instantiation has already been removed for other controllers
and it makes absolutely sense to do it for this one too.

Signed-off-by: Michael Brunner <michael.brunner@kontron.com>
Acked-by: Ingmar Klein <ingmar.klein@kontron.com>
---
 drivers/i2c/busses/i2c-kempld.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-kempld.c b/drivers/i2c/busses/i2c-kempld.c
index 2d60be086b1a..5bbb7f0d7852 100644
--- a/drivers/i2c/busses/i2c-kempld.c
+++ b/drivers/i2c/busses/i2c-kempld.c
@@ -283,7 +283,8 @@ static const struct i2c_algorithm kempld_i2c_algorithm = {
 static const struct i2c_adapter kempld_i2c_adapter = {
 	.owner		= THIS_MODULE,
 	.name		= "i2c-kempld",
-	.class		= I2C_CLASS_HWMON | I2C_CLASS_SPD,
+	.class		= I2C_CLASS_HWMON | I2C_CLASS_SPD |
+			  I2C_CLASS_DEPRECATED,
 	.algo		= &kempld_i2c_algorithm,
 };
 
-- 
2.25.1


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

* Re: [PATCH] i2c: i2c-kempld: deprecate class based instantiation
  2021-08-31 10:29 [PATCH] i2c: i2c-kempld: deprecate class based instantiation Michael Brunner
@ 2021-09-29 21:08 ` wsa
  0 siblings, 0 replies; 2+ messages in thread
From: wsa @ 2021-09-29 21:08 UTC (permalink / raw)
  To: Michael Brunner
  Cc: linux, sameo, mibru, linux-i2c, linux-kernel, Ingmar Klein

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

On Tue, Aug 31, 2021 at 10:29:36AM +0000, Michael Brunner wrote:
> Warn users that class based instantiation is going away soon in favour
> of more robust probing and faster bootup times.
> 
> Class based instantiation has already been removed for other controllers
> and it makes absolutely sense to do it for this one too.
> 
> Signed-off-by: Michael Brunner <michael.brunner@kontron.com>
> Acked-by: Ingmar Klein <ingmar.klein@kontron.com>

Applied to for-next, thanks!


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

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

end of thread, other threads:[~2021-09-29 21:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-31 10:29 [PATCH] i2c: i2c-kempld: deprecate class based instantiation Michael Brunner
2021-09-29 21:08 ` wsa

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).