diff mbox series

i2c: i2c-kempld: deprecate class based instantiation

Message ID 823bd555e13a3c62be199d4e23c352a5535aad85.camel@kontron.com
State Accepted
Commit 647d908816a78d604d47ea925c934fd88375b4fd
Headers show
Series i2c: i2c-kempld: deprecate class based instantiation | expand

Commit Message

Michael Brunner Aug. 31, 2021, 10:29 a.m. UTC
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(-)

Comments

Wolfram Sang Sept. 29, 2021, 9:08 p.m. UTC | #1
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!
diff mbox series

Patch

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,
 };