dev-sync-probe.h 659 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef DEV_SYNC_PROBE_H
  3. #define DEV_SYNC_PROBE_H
  4. #include <linux/completion.h>
  5. #include <linux/notifier.h>
  6. #include <linux/platform_device.h>
  7. struct dev_sync_probe_data {
  8. struct platform_device *pdev;
  9. const char *name;
  10. /* Synchronize with probe */
  11. struct notifier_block bus_notifier;
  12. struct completion probe_completion;
  13. bool driver_bound;
  14. };
  15. void dev_sync_probe_init(struct dev_sync_probe_data *data);
  16. int dev_sync_probe_register(struct dev_sync_probe_data *data,
  17. struct platform_device_info *pdevinfo);
  18. void dev_sync_probe_unregister(struct dev_sync_probe_data *data);
  19. #endif /* DEV_SYNC_PROBE_H */