[U-Boot] [PATCH v2 12/24] dm: blk: Add a comment as to why the bdev member is needed
Simon Glass
sjg at chromium.org
Sun May 1 21:52:33 CEST 2016
This member should be explained, since it is not obvious why it is needed.
Add a comment.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2: None
include/blk.h | 5 +++++
1 file changed, 5 insertions(+)
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,
--
2.8.0.rc3.226.g39d4020
More information about the U-Boot
mailing list