]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i2c: add deprecation warning for class based instantiation
authorWolfram Sang <wsa@the-dreams.de>
Mon, 10 Feb 2014 10:03:56 +0000 (11:03 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 5 Mar 2014 16:16:45 +0000 (17:16 +0100)
commit0c176170089c3a7f2a891f9860f5cdc5f481ff78
treeb86e44370013676481e49c57c7e46d65190d9203
parent624df09f3a20b7073289d7f7d8672734ca1339a9
i2c: add deprecation warning for class based instantiation

Class based instantiation can cause noticeable delays when booting. This
mechanism is used when it is not possible to describe slaves on I2C
busses. As we do have other mechanisms, most embedded I2C will not need
classes and for embedded it is explicitly not recommended to use them. Add
a deprecation warning for drivers which want to disable class based
instantiation in the near future to gain boot-up time, so users relying
on this technique can switch to something better. They really should.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c
include/linux/i2c.h