]> git.baikalelectronics.ru Git - kernel.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)
commit8f3334bbafefe50e3810fda5469a049f82884d59
treeb86e44370013676481e49c57c7e46d65190d9203
parent795cdbcb5ecd988ca78cfb762ca5cb495b23dd66
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