summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-06-19 17:33:13 -0600
committerSimon Glass <sjg@chromium.org>2016-07-11 14:06:44 -0600
commit01a227dfc890c8e1b6412a7208fb178d9ac22691 (patch)
tree8df66e4d6db72880f7bff9789d77f8e5722ffdc3 /lib
parentda9e0a9bab7ddcf9888a6211b76860155895169d (diff)
fdt: Add a note to avoid adding new compatible strings
The list is shrinking and we should avoid adding new things. Instead, a proper driver should be created with driver model. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/fdtdec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 960f9bb8b2..68f0df733c 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -19,6 +19,11 @@ DECLARE_GLOBAL_DATA_PTR;
* Here are the type we know about. One day we might allow drivers to
* register. For now we just put them here. The COMPAT macro allows us to
* turn this into a sparse list later, and keeps the ID with the name.
+ *
+ * NOTE: This list is basically a TODO list for things that need to be
+ * converted to driver model. So don't add new things here unless there is a
+ * good reason why driver-model conversion is infeasible. Examples include
+ * things which are used before driver model is available.
*/
#define COMPAT(id, name) name
static const char * const compat_names[COMPAT_COUNT] = {