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

dm: Tidy up some header file comments


Fix up the style of a few comments and add/clarify a few others.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 3234aa4b
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,7 @@ struct udevice_id {
* This is typically only useful for device-tree-aware drivers (those with
* an of_match), since drivers which use platdata will have the data
* provided in the U_BOOT_DEVICE() instantiation.
* ops: Driver-specific operations. This is typically a list of function
* @ops: Driver-specific operations. This is typically a list of function
* pointers defined by the driver, to implement driver functions required by
* the uclass.
* @flags: driver flags - see DM_FLAGS_...
......
......@@ -11,6 +11,12 @@
#ifndef _DM_PLATDATA_H
#define _DM_PLATDATA_H
/**
* struct driver_info - Information required to instantiate a device
*
* @name: Device name
* @platdata: Driver-specific platform data
*/
struct driver_info {
const char *name;
const void *platdata;
......
......@@ -35,7 +35,8 @@ int dm_scan_platdata(bool pre_reloc_only);
/**
* dm_scan_fdt() - Scan the device tree and bind drivers
*
* This scans the device tree and creates a driver for each node
* This scans the device tree and creates a driver for each node. Only
* the top-level subnodes are examined.
*
* @blob: Pointer to device tree blob
* @pre_reloc_only: If true, bind only drivers with the DM_FLAG_PRE_RELOC
......
......@@ -19,7 +19,7 @@ enum uclass_id {
UCLASS_TEST_FDT,
/* U-Boot uclasses start here */
UCLASS_GPIO,
UCLASS_GPIO, /* Bank of general-purpose I/O pins */
UCLASS_COUNT,
UCLASS_INVALID = -1,
......
......@@ -98,7 +98,7 @@ int uclass_get(enum uclass_id key, struct uclass **ucp);
*
* The device is probed to activate it ready for use.
*
* id: ID to look up
* @id: ID to look up
* @index: Device number within that uclass (0=first)
* @devp: Returns pointer to device (there is only one per for each ID)
* @return 0 if OK, -ve on error
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment