diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2014-02-10 14:04:09 +0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-03-05 20:17:09 +0400 |
commit | bee749c6f02c859980e44bd669a1f2de144b237f (patch) | |
tree | 9b4778441994875503706b28af49015eaadec446 /drivers/i2c | |
parent | 878f00b082e0a32988b425c097116971475ffdd9 (diff) | |
download | linux-bee749c6f02c859980e44bd669a1f2de144b237f.tar.xz |
i2c: i2c-stu300: deprecate class based instantiation
Warn users that class based instantiation is going away soon in favour
of more robust probing and faster bootup times.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-stu300.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-stu300.c b/drivers/i2c/busses/i2c-stu300.c index 5b80ef310841..29b1fb778943 100644 --- a/drivers/i2c/busses/i2c-stu300.c +++ b/drivers/i2c/busses/i2c-stu300.c @@ -911,7 +911,7 @@ static int stu300_probe(struct platform_device *pdev) adap = &dev->adapter; adap->owner = THIS_MODULE; /* DDC class but actually often used for more generic I2C */ - adap->class = I2C_CLASS_DDC; + adap->class = I2C_CLASS_DDC | I2C_CLASS_DEPRECATED; strlcpy(adap->name, "ST Microelectronics DDC I2C adapter", sizeof(adap->name)); adap->nr = bus_nr; |