Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bee749c6 authored by Wolfram Sang's avatar Wolfram Sang
Browse files

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: default avatarWolfram Sang <wsa@the-dreams.de>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 878f00b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -911,7 +911,7 @@ static int stu300_probe(struct platform_device *pdev)
	adap = &dev->adapter;
	adap = &dev->adapter;
	adap->owner = THIS_MODULE;
	adap->owner = THIS_MODULE;
	/* DDC class but actually often used for more generic I2C */
	/* 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",
	strlcpy(adap->name, "ST Microelectronics DDC I2C adapter",
		sizeof(adap->name));
		sizeof(adap->name));
	adap->nr = bus_nr;
	adap->nr = bus_nr;