Skip to contentSkip to conversation

i2c: i2c-kempld: deprecate class based instantiation

PATCH Applied Michael Brunner 2 participants 2 messages Aug 31, 2021 – Sep 29, 2021 I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: i2c-kempld: deprecate class based instantiation

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.

---
 drivers/i2c/busses/i2c-kempld.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/i2c/busses/i2c-kempld.c +2 -1
index 2d60be086b1a..5bbb7f0d7852 100644
@@ -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,
 };
 
Signature · 1 line
2.25.1