Преглед изворни кода

dm: doc: Correct of-platdata driver name

Add a note about the driver name in the of-platdata documentation since
the naming must follow the compatible string.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Simon Glass пре 4 година
родитељ
комит
63473ee8c5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      doc/driver-model/of-plat.rst

+ 1 - 1
doc/driver-model/of-plat.rst

@@ -269,7 +269,7 @@ For example:
     };
 
     U_BOOT_DRIVER(mmc_drv) = {
-            .name           = "mmc",
+            .name           = "vendor_mmc",  /* matches compatible string */
             .id             = UCLASS_MMC,
             .of_match       = mmc_ids,
             .ofdata_to_platdata = mmc_ofdata_to_platdata,