diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-11-14 10:16:02 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-11-16 08:34:06 +0100 |
commit | dd706c83beb1f65f00aed432376cc507ff255fcb (patch) | |
tree | ddbb61ab274b5357f0c543033b31920d641dbe2f | |
parent | a8a0fc4628ba7a3443f4e90f47809fdac7aa492e (diff) | |
download | u-boot-dd706c83beb1f65f00aed432376cc507ff255fcb.tar.gz |
sandbox: fix documentation of struct host_ops
The documentation of struct host_ops should be Sphinx compliant.
Fixes: 9bd1aa8af2ed ("dm: sandbox: Create a new HOST uclass")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r-- | include/sandbox_host.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/include/sandbox_host.h b/include/sandbox_host.h index 2e37ede235..ebd7d99b47 100644 --- a/include/sandbox_host.h +++ b/include/sandbox_host.h @@ -23,26 +23,23 @@ struct host_sb_plat { /** * struct host_ops - operations supported by UCLASS_HOST - * - * @attach_file: Attach a new file to a device - * @detach_file: Detach a file from a device */ struct host_ops { - /* - * attach_file() - Attach a new file to the device + /** + * @attach_file: - Attach a new file to the device * - * @dev: Device to update - * @filename: Name of the file, e.g. "/path/to/disk.img" - * Returns: 0 if OK, -EEXIST if a file is already attached, other -ve on + * @attach_file.dev: Device to update + * @attach_file.filename: Name of the file, e.g. "/path/to/disk.img" + * @attach_file.Returns: 0 if OK, -EEXIST if a file is already attached, other -ve on * other error */ int (*attach_file)(struct udevice *dev, const char *filename); /** - * detach_file() - Detach a file from the device + * @detach_file: - Detach a file from the device * - * @dev: Device to detach from - * Returns: 0 if OK, -ENOENT if no file is attached, other -ve on other + * @detach_file.dev: Device to detach from + * @detach_file.Returns: 0 if OK, -ENOENT if no file is attached, other -ve on other * error */ int (*detach_file)(struct udevice *dev); |