Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions include/drivers/clock_control.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ static inline int clock_control_on(struct device *dev,
}

/**
* @brief Disable the clock of a sub-system controlled by the device
* @brief Disable the clock of a sub-system controlled by the device.
*
* Function is non-blocking and can be called from any context.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Function is non-blocking and can be called from any context.
* This function is non-blocking, and can be called from any context.

*
* @param dev Pointer to the device structure for the clock controller driver
* instance
* @param sys A pointer to an opaque data representing the sub-system
Expand All @@ -134,9 +137,7 @@ static inline int clock_control_off(struct device *dev,
/**
* @brief Request clock to start with notification when clock has been started.
*
* User can request delayed start by providing exact information when clock
* should be ready. Driver ensures that clock is ready before requested time.
* It is the driver responsibility to take into account clock startup time.
* Function is non-blocking and can be called from any context.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Function is non-blocking and can be called from any context.
* This function is non-blocking, and can be called from any context.

* When clock is already running user callback will be called from the context
* of the function call else it is called from other context (e.g. clock
* interrupt).
Expand Down