浏览代码

i2c: Driver IDs are optional

Document the fact that I2C driver IDs are optional.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Jean Delvare 17 年之前
父节点
当前提交
f9dd0194ff
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/linux/i2c-id.h

+ 4 - 0
include/linux/i2c-id.h

@@ -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 -----------------------------------------------------
  */