i2c: kempld: deprecate class based instantiation
authorMichael Brunner <Michael.Brunner@kontron.com>
Tue, 31 Aug 2021 10:29:36 +0000 (10:29 +0000)
committerWolfram Sang <wsa@kernel.org>
Wed, 29 Sep 2021 21:07:02 +0000 (23:07 +0200)
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>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-kempld.c

index 2d60be0..5bbb7f0 100644 (file)
@@ -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,
 };