summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/mlxreg.h
diff options
context:
space:
mode:
authorMichael Shych <michaelsh@nvidia.com>2022-04-30 14:58:07 +0300
committerHans de Goede <hdegoede@redhat.com>2022-05-11 17:32:30 +0300
commitabcebcd39fe094b68826cc04f2eca835606697f9 (patch)
tree3244099ea739a04b153dd560ad5b2da62d9193c0 /include/linux/platform_data/mlxreg.h
parent619695fab3ba18a9145000280b0d74faf2131dea (diff)
downloadlinux-abcebcd39fe094b68826cc04f2eca835606697f9.tar.xz
platform_data/mlxreg: Add field for notification callback
Add notification callback to inform caller that platform driver probing has been completed. It allows to caller to perform some initialization flow steps depending on specific driver probing completion. Signed-off-by: Michael Shych <michaelsh@nvidia.com> Reviewed-by: Vadim Pasternak <vadimp@nvidia.com> Link: https://lore.kernel.org/r/20220430115809.54565-2-michaelsh@nvidia.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/linux/platform_data/mlxreg.h')
-rw-r--r--include/linux/platform_data/mlxreg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h
index 40185f9d7c14..a6bd74e29b6b 100644
--- a/include/linux/platform_data/mlxreg.h
+++ b/include/linux/platform_data/mlxreg.h
@@ -216,6 +216,8 @@ struct mlxreg_core_platform_data {
* @mask_low: low aggregation interrupt common mask;
* @deferred_nr: I2C adapter number must be exist prior probing execution;
* @shift_nr: I2C adapter numbers must be incremented by this value;
+ * @handle: handle to be passed by callback;
+ * @completion_notify: callback to notify when platform driver probing is done;
*/
struct mlxreg_core_hotplug_platform_data {
struct mlxreg_core_item *items;
@@ -228,6 +230,8 @@ struct mlxreg_core_hotplug_platform_data {
u32 mask_low;
int deferred_nr;
int shift_nr;
+ void *handle;
+ int (*completion_notify)(void *handle, int id);
};
#endif /* __LINUX_PLATFORM_DATA_MLXREG_H */