mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
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>
This commit is contained in:
parent
6dd9faf8f9
commit
b6694a33c4
1 changed files with 5 additions and 0 deletions
|
@ -63,6 +63,11 @@ struct blk_desc {
|
||||||
char product[20+1]; /* IDE Serial no, SCSI product */
|
char product[20+1]; /* IDE Serial no, SCSI product */
|
||||||
char revision[8+1]; /* firmware revision */
|
char revision[8+1]; /* firmware revision */
|
||||||
#ifdef CONFIG_BLK
|
#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;
|
struct udevice *bdev;
|
||||||
#else
|
#else
|
||||||
unsigned long (*block_read)(struct blk_desc *block_dev,
|
unsigned long (*block_read)(struct blk_desc *block_dev,
|
||||||
|
|
Loading…
Reference in a new issue