Skip to content
Snippets Groups Projects
Commit b6694a33 authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent 6dd9faf8
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment