]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
fdt: Add a note to avoid adding new compatible strings
authorSimon Glass <sjg@chromium.org>
Sun, 19 Jun 2016 23:33:13 +0000 (17:33 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 11 Jul 2016 20:06:44 +0000 (14:06 -0600)
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>
lib/fdtdec.c

index 960f9bb8b2825623d5f4ee760ec0a853ddfbc0ab..68f0df733cacdac8c735bfaa5010bcd86f4d04a5 100644 (file)
@@ -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] = {