summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2014-02-10 11:03:56 +0100
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>2015-02-04 11:13:24 +0100
commitc69af06be2e09b79e19c9f88101eb795ba04e939 (patch)
tree97e8246ce7550a9884bd675da9ed61d08b76f77a /include/linux
parent88c0d458e04051d48ceb4d6df0bb8f75e952e1db (diff)
downloadkernel-common-c69af06be2e09b79e19c9f88101eb795ba04e939.tar.gz
kernel-common-c69af06be2e09b79e19c9f88101eb795ba04e939.tar.bz2
kernel-common-c69af06be2e09b79e19c9f88101eb795ba04e939.zip
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/i2c.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index deddeb8c337c..b556e0ab946f 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -487,6 +487,7 @@ void i2c_unlock_adapter(struct i2c_adapter *);
#define I2C_CLASS_HWMON (1<<0) /* lm_sensors, ... */
#define I2C_CLASS_DDC (1<<3) /* DDC bus on graphics adapters */
#define I2C_CLASS_SPD (1<<7) /* Memory modules */
+#define I2C_CLASS_DEPRECATED (1<<8) /* Warn users that adapter will stop using classes */
/* Internal numbers to terminate lists */
#define I2C_CLIENT_END 0xfffeU