i2c: i2c-stu300: deprecate class based instantiation
authorWolfram Sang <wsa@the-dreams.de>
Mon, 10 Feb 2014 10:04:09 +0000 (11:04 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 5 Mar 2014 16:17:09 +0000 (17:17 +0100)
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>
drivers/i2c/busses/i2c-stu300.c

index 5b80ef3108410fd36c48db2d3d27a3ea55a361cd..29b1fb778943c574b5c93896c80ed2dfe5074bf0 100644 (file)
@@ -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;
This page took 0.02681 seconds and 5 git commands to generate.