summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-11-26 19:51:21 -0700
committerSimon Glass <sjg@chromium.org>2015-12-01 06:26:37 -0700
commit54fe7b1c12a4e0005337b2dccc090c8917d8315d (patch)
tree13e59ebb2efe2afeee14336574ede6de252f3541
parent07a588704c3020bd29a1c27e85570592ce665592 (diff)
downloadu-boot-imx-54fe7b1c12a4e0005337b2dccc090c8917d8315d.zip
u-boot-imx-54fe7b1c12a4e0005337b2dccc090c8917d8315d.tar.gz
u-boot-imx-54fe7b1c12a4e0005337b2dccc090c8917d8315d.tar.bz2
dm: pci: Add a comment about how to find struct pci_controller
With driver mode, struct pci_controller is stored as uclass-private data. Add a comment to that effect. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r--include/pci.h2
1 files changed, 2 insertions, 0 deletions
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