@@ -68,7 +68,7 @@ void pm_device_disable(const struct device *dev);
6868 * pm signal mechanism to know the completion of resume operation.
6969 * @retval Errno Negative errno code if failure.
7070 */
71- int pm_device_get (const struct device * dev );
71+ int pm_device_get_async (const struct device * dev );
7272
7373/**
7474 * @brief Call device resume synchronously based on usage count
@@ -83,7 +83,7 @@ int pm_device_get(const struct device *dev);
8383 * @retval 0 If successful.
8484 * @retval Errno Negative errno code if failure.
8585 */
86- int pm_device_get_sync (const struct device * dev );
86+ int pm_device_get (const struct device * dev );
8787
8888/**
8989 * @brief Call device suspend asynchronously based on usage count
@@ -101,7 +101,7 @@ int pm_device_get_sync(const struct device *dev);
101101 * signal mechanism to know the completion of suspend operation.
102102 * @retval Errno Negative errno code if failure.
103103 */
104- int pm_device_put (const struct device * dev );
104+ int pm_device_put_async (const struct device * dev );
105105
106106/**
107107 * @brief Call device suspend synchronously based on usage count
@@ -116,14 +116,14 @@ int pm_device_put(const struct device *dev);
116116 * @retval 0 If successful.
117117 * @retval Errno Negative errno code if failure.
118118 */
119- int pm_device_put_sync (const struct device * dev );
119+ int pm_device_put (const struct device * dev );
120120
121121/**
122122 * @brief Wait on a device to finish an operation.
123123 *
124- * The calling thread blocks until the device finishes a @ref pm_device_put or
125- * @ref pm_device_get operation. If there is no operation in progress
126- * this function will return immediately.
124+ * The calling thread blocks until the device finishes a
125+ * @ref pm_device_put_async or @ref pm_device_get_async operation. If there is
126+ * no operation in progress this function will return immediately.
127127 *
128128 * @param dev Pointer to device structure of the specific device driver
129129 * the caller is interested in.
@@ -138,9 +138,9 @@ int pm_device_wait(const struct device *dev, k_timeout_t timeout);
138138static inline void pm_device_enable (const struct device * dev ) { }
139139static inline void pm_device_disable (const struct device * dev ) { }
140140static inline int pm_device_get (const struct device * dev ) { return - ENOSYS ; }
141- static inline int pm_device_get_sync (const struct device * dev ) { return - ENOSYS ; }
141+ static inline int pm_device_get_async (const struct device * dev ) { return - ENOSYS ; }
142142static inline int pm_device_put (const struct device * dev ) { return - ENOSYS ; }
143- static inline int pm_device_put_sync (const struct device * dev ) { return - ENOSYS ; }
143+ static inline int pm_device_put_async (const struct device * dev ) { return - ENOSYS ; }
144144static inline int pm_device_wait (const struct device * dev ,
145145 k_timeout_t timeout ) { return - ENOSYS ; }
146146#endif
0 commit comments