mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
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. 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>
This commit is contained in:
parent
ed2f85115a
commit
647d908816
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue