diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-02-26 01:21:22 +0100 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-02-27 17:36:30 +0100 |
commit | acb56ebef833e0189f4d867c144363ef522ba740 (patch) | |
tree | 744d20026ba14407f5f9924a8ec380dba957b5c9 /src/libcamera/media_device.cpp | |
parent | 9aceed70a2879802c7fe00ea2c0455ccd5c14f07 (diff) |
libcamera: align the documentation for numeric error codes
Rapid growth of the library have resulted in slightly different wording
to document that a function returns 0 on success or a negative error
code otherwise. Align all different variations.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/libcamera/media_device.cpp')
-rw-r--r-- | src/libcamera/media_device.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcamera/media_device.cpp b/src/libcamera/media_device.cpp index 800ed330..ea460893 100644 --- a/src/libcamera/media_device.cpp +++ b/src/libcamera/media_device.cpp @@ -206,7 +206,7 @@ void MediaDevice::close() * while pads are accessible from the entity they belong to and links from the * pads they connect. * - * \return 0 on success, a negative error code otherwise + * \return 0 on success or a negative error code otherwise */ int MediaDevice::populate() { @@ -405,7 +405,7 @@ MediaLink *MediaDevice::link(const MediaPad *source, const MediaPad *sink) * Disable all the media device links, clearing the MEDIA_LNK_FL_ENABLED flag * on links which are not flagged as IMMUTABLE. * - * \return 0 on success, or a negative error code otherwise + * \return 0 on success or a negative error code otherwise */ int MediaDevice::disableLinks() { @@ -705,7 +705,7 @@ void MediaDevice::fixupEntityFlags(struct media_v2_entity *entity) * * \sa MediaLink::setEnabled(bool enable) * - * \return 0 on success, or a negative error code otherwise + * \return 0 on success or a negative error code otherwise */ int MediaDevice::setupLink(const MediaLink *link, unsigned int flags) { |