[U-Boot] [PATCH v2 04/13] dm: pci: Add a comment about how to find struct pci_controller

Simon Glass sjg at chromium.org
Sun Nov 22 00:28:19 CET 2015


With driver mode, struct pci_controller is stored as uclass-private data.
Add a comment to that effect.

Signed-off-by: Simon Glass <sjg at chromium.org>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
---

Changes in v2: None

 include/pci.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/pci.h b/include/pci.h
index 9c19482..c4f6577 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -537,6 +537,8 @@ extern void pci_cfgfunc_config_device(struct pci_controller* hose, pci_dev_t dev
 
 /*
  * Structure of a PCI controller (host bridge)
+ *
+ * With driver model this is dev_get_uclass_priv(bus)
  */
 struct pci_controller {
 #ifdef CONFIG_DM_PCI
-- 
2.6.0.rc2.230.g3dd15c0



More information about the U-Boot mailing list