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)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:21:36 +0000 (09:21 +0900)
commit436ec712e17c0c2c8e809432aa76c0451f4bc2d8
treeac05122ad785d505945901fee3bf7149afb73bab
parent9cfd3db21d148e1fe4c90ab91db43ad5c6ecb39f
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>
(cherry picked from commit 0c176170089c3a7f2a891f9860f5cdc5f481ff78)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/i2c/i2c-core.c
include/linux/i2c.h