[PATCH v3 03/13] driver core: Add documentation for dev_set_drv_sync_state()
Ulf Hansson
ulf.hansson at linaro.org
Fri May 8 05:38:52 PDT 2026
As dev_set_drv_sync_state() is an exported function, let's add some
documentation of it.
Signed-off-by: Ulf Hansson <ulf.hansson at linaro.org>
---
Changes in v3:
- New patch.
---
include/linux/device.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/linux/device.h b/include/linux/device.h
index 6848b0a2c2d9..209feea8050e 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -1077,6 +1077,14 @@ static inline bool dev_has_sync_state(struct device *dev)
return false;
}
+/**
+ * dev_set_drv_sync_state - Assign the ->sync_state callback for a device.
+ * @dev: The device.
+ * @fn: The callback.
+ *
+ * This function dynamically tries to assign the driver's ->sync_state()
+ * callback for the corresponding @dev.
+ */
static inline int dev_set_drv_sync_state(struct device *dev,
void (*fn)(struct device *dev))
{
--
2.43.0
More information about the linux-arm-kernel
mailing list