diff options
author | Simon Glass <sjg@chromium.org> | 2017-06-14 21:28:32 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-07-11 10:08:19 -0600 |
commit | 2c9f9efb3d43568e5e5843c600e8bfc2d42ac23e (patch) | |
tree | 2481c6763c62a2b6119e2b1c3698d36b78200208 /include/ahci.h | |
parent | 1dc64f6c00e89f11e3615403459207405ab0efda (diff) | |
download | u-boot-2c9f9efb3d43568e5e5843c600e8bfc2d42ac23e.tar.gz |
dm: ahci: Rename struct ahci_probe_ent
This is not a very useful name since once it is probed it still hangs
around. With driver model we will use uclass data for this, so rename the
struct.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/ahci.h')
-rw-r--r-- | include/ahci.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/ahci.h b/include/ahci.h index 4876b41e90..1f441d1c80 100644 --- a/include/ahci.h +++ b/include/ahci.h @@ -144,8 +144,19 @@ struct ahci_ioports { u32 rx_fis; }; -struct ahci_probe_ent { +/** + * struct ahci_uc_priv - information about an AHCI controller + * + * When driver model is used, this is accessible using dev_get_uclass_priv(dev) + * where dev is the controller (although at present it sometimes stands alone). + */ +struct ahci_uc_priv { #if defined(CONFIG_DM_PCI) || defined(CONFIG_DM_SCSI) + /* + * TODO(sjg@chromium.org): Drop this once this structure is only used + * in a driver-model context (i.e. attached to a device with + * dev_get_uclass_priv() + */ struct udevice *dev; #else pci_dev_t dev; |