summaryrefslogtreecommitdiff
path: root/include/blk.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-05-01 13:52:33 -0600
committerSimon Glass <sjg@chromium.org>2016-05-17 09:54:43 -0600
commitb6694a33c45530e4c260c7fd6c77cc8472c9412f (patch)
tree323243e95fa5f4be7971ac07735f64f6ce2e4d37 /include/blk.h
parent6dd9faf8f97e1aad9961a480775612f6cbde27de (diff)
downloadu-boot-imx-b6694a33c45530e4c260c7fd6c77cc8472c9412f.zip
u-boot-imx-b6694a33c45530e4c260c7fd6c77cc8472c9412f.tar.gz
u-boot-imx-b6694a33c45530e4c260c7fd6c77cc8472c9412f.tar.bz2
dm: blk: Add a comment as to why the bdev member is needed
This member should be explained, since it is not obvious why it is needed. Add a comment. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/blk.h')
-rw-r--r--include/blk.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/blk.h b/include/blk.h
index 3fa373e..66a1c55 100644
--- a/include/blk.h
+++ b/include/blk.h
@@ -63,6 +63,11 @@ struct blk_desc {
char product[20+1]; /* IDE Serial no, SCSI product */
char revision[8+1]; /* firmware revision */
#ifdef CONFIG_BLK
+ /*
+ * For now we have a few functions which take struct blk_desc as a
+ * parameter. This field allows them to look up the associated
+ * device. Once these functions are removed we can drop this field.
+ */
struct udevice *bdev;
#else
unsigned long (*block_read)(struct blk_desc *block_dev,