Trait for implementers of platform drivers.
Implement this trait whenever you create a platform driver.
Device driver data.
Corresponds to the data set or retrieved via the kernel’s
PointerWrapper. We guarantee to
never move the underlying wrapped data structure. This allows
driver writers to use pinned or self-referential data structures.
Platform driver probe.
Called when a new platform device is added or discovered. Implementers should attempt to initialize the device here.
Platform driver remove.
Called when a platform device is removed. Implementers should prepare the device for complete removal here.