Commit 54fe7b1c12a4e0005337b2dccc090c8917d8315d

Authored by Simon Glass
1 parent 07a588704c

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -537,6 +537,8 @@
537 537  
538 538 /*
539 539 * Structure of a PCI controller (host bridge)
  540 + *
  541 + * With driver model this is dev_get_uclass_priv(bus)
540 542 */
541 543 struct pci_controller {
542 544 #ifdef CONFIG_DM_PCI