[i2c] [PATCH] i2c: Driver IDs are optional

Jean Delvare khali at linux-fr.org
Thu Jan 3 17:57:31 CET 2008


Document the fact that I2C driver IDs are optional.

Signed-off-by: Jean Delvare <khali at linux-fr.org>
---
 include/linux/i2c-id.h |    4 ++++
 1 file changed, 4 insertions(+)

--- linux-2.6.24-rc6.orig/include/linux/i2c-id.h	2007-12-21 18:20:04.000000000 +0100
+++ linux-2.6.24-rc6/include/linux/i2c-id.h	2007-12-21 18:20:40.000000000 +0100
@@ -23,6 +23,10 @@
 #ifndef LINUX_I2C_ID_H
 #define LINUX_I2C_ID_H
 
+/* Please note that I2C driver IDs are optional. They are only needed if a
+   legacy chip driver needs to identify a bus or a bus driver needs to
+   identify a legacy client. If you don't need them, just don't set them. */
+
 /*
  * ---- Driver types -----------------------------------------------------
  */


-- 
Jean Delvare



More information about the i2c mailing list