Skip to content
/ linux Public

Commit abcebcd

Browse files
mshychjwrdegoede
authored andcommitted
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>
1 parent 619695f commit abcebcd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/linux/platform_data/mlxreg.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ struct mlxreg_core_platform_data {
216216
* @mask_low: low aggregation interrupt common mask;
217217
* @deferred_nr: I2C adapter number must be exist prior probing execution;
218218
* @shift_nr: I2C adapter numbers must be incremented by this value;
219+
* @handle: handle to be passed by callback;
220+
* @completion_notify: callback to notify when platform driver probing is done;
219221
*/
220222
struct mlxreg_core_hotplug_platform_data {
221223
struct mlxreg_core_item *items;
@@ -228,6 +230,8 @@ struct mlxreg_core_hotplug_platform_data {
228230
u32 mask_low;
229231
int deferred_nr;
230232
int shift_nr;
233+
void *handle;
234+
int (*completion_notify)(void *handle, int id);
231235
};
232236

233237
#endif /* __LINUX_PLATFORM_DATA_MLXREG_H */

0 commit comments

Comments
 (0)