mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 16:40:44 +09:00
dm: fix comments
The struct udevice stands for a device, not a driver. The driver_info.name is a driver's name, which is referenced to bind devices. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a84c8107d9
commit
81b4e751c2
@ -38,7 +38,7 @@ struct uclass_driver *lists_uclass_lookup(enum uclass_id id);
|
|||||||
* This searches the U_BOOT_DEVICE() structures and creates new devices for
|
* This searches the U_BOOT_DEVICE() structures and creates new devices for
|
||||||
* each one. The devices will have @parent as their parent.
|
* each one. The devices will have @parent as their parent.
|
||||||
*
|
*
|
||||||
* @parent: parent driver (root)
|
* @parent: parent device (root)
|
||||||
* @early_only: If true, bind only drivers with the DM_INIT_F flag. If false
|
* @early_only: If true, bind only drivers with the DM_INIT_F flag. If false
|
||||||
* bind all drivers.
|
* bind all drivers.
|
||||||
*/
|
*/
|
||||||
@ -50,7 +50,7 @@ int lists_bind_drivers(struct udevice *parent, bool pre_reloc_only);
|
|||||||
* This creates a new device bound to the given device tree node, with
|
* This creates a new device bound to the given device tree node, with
|
||||||
* @parent as its parent.
|
* @parent as its parent.
|
||||||
*
|
*
|
||||||
* @parent: parent driver (root)
|
* @parent: parent device (root)
|
||||||
* @blob: device tree blob
|
* @blob: device tree blob
|
||||||
* @offset: offset of this device tree node
|
* @offset: offset of this device tree node
|
||||||
* @devp: if non-NULL, returns a pointer to the bound device
|
* @devp: if non-NULL, returns a pointer to the bound device
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
/**
|
/**
|
||||||
* struct driver_info - Information required to instantiate a device
|
* struct driver_info - Information required to instantiate a device
|
||||||
*
|
*
|
||||||
* @name: Device name
|
* @name: Driver name
|
||||||
* @platdata: Driver-specific platform data
|
* @platdata: Driver-specific platform data
|
||||||
*/
|
*/
|
||||||
struct driver_info {
|
struct driver_info {
|
||||||
|
Loading…
Reference in New Issue
Block a user