Skip to content

Commit

Permalink
core: kernel: fix get_of_device_func description
Browse files Browse the repository at this point in the history
Fixes the inline description comment for type get_of_device_func
and API function dt_driver_device_from_parent().

Fixes: b357d34 ("core: dt_driver: swap TEE_result and retrieved device reference")
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
  • Loading branch information
etienne-lms committed Nov 3, 2023
1 parent f7acc21 commit 5266813
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/include/kernel/dt_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ struct dt_pargs {
*
* @parg: phandle argument(s) referencing the device in the FDT.
* @data: driver private data registered in struct dt_driver.
* @res: Output result code of the operation:
* TEE_SUCCESS in case of success
* TEE_ERROR_DEFER_DRIVER_INIT if device driver is not yet initialized
* Any TEE_Result compliant code in case of error.
* @out_device: output device reference upon success, e.g. a struct clk
* pointer for a clock driver.
*
* Return a device opaque reference, e.g. a struct clk pointer for a clock
* driver, or NULL if not found in which case @res provides the error code.
* Return code:
* TEE_SUCCESS in case of success
* TEE_ERROR_DEFER_DRIVER_INIT if device driver is not yet initialized
* Any TEE_Result compliant code in case of error.
*/
typedef TEE_Result (*get_of_device_func)(struct dt_pargs *parg, void *data,
void **out_device);
Expand Down Expand Up @@ -163,7 +163,7 @@ TEE_Result dt_driver_device_from_node_idx_prop(const char *prop_name,
* @fdt: FDT base address
* @nodeoffset: node offset in the FDT
* @type: Driver type
* @dout_device: output device opaque reference upon success, for example
* @out_device: output device opaque reference upon success, for example
* a struct i2c_dev pointer for a I2C bus driver
*
* Return code:
Expand Down

0 comments on commit 5266813

Please sign in to comment.