summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2014-02-10 11:04:09 +0100
committerWolfram Sang <wsa@the-dreams.de>2014-03-05 17:17:09 +0100
commitbee749c6f02c859980e44bd669a1f2de144b237f (patch)
tree9b4778441994875503706b28af49015eaadec446 /drivers/i2c
parent878f00b082e0a32988b425c097116971475ffdd9 (diff)
downloadlinux-bee749c6f02c859980e44bd669a1f2de144b237f.tar.gz
linux-bee749c6f02c859980e44bd669a1f2de144b237f.tar.bz2
linux-bee749c6f02c859980e44bd669a1f2de144b237f.zip
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.c2
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;