Skip to content

Make spi::DriverRegistration use Pin<> and Sync #41

Closed
@CohenArthur

Description

We need to pin the memory so that our Mfrc522Driver can take ownership of the registration. Without taking ownership, the registration is dropped at the end of the init function.
To take ownership, we need the registration to be Sync. This will unregister it only when unloading the module.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

rustIssue with the Rust implementation of the driver

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Make spi::DriverRegistration use Pin<> and Sync · Issue #41 · ks0n/mfrc522-linux