]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: i2c: Update ARef and AlwaysRefCounted imports to use sync::aref
authorShankari Anand <shankari.ak0208@gmail.com>
Fri, 2 Jan 2026 20:27:12 +0000 (01:57 +0530)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 15 Mar 2026 19:30:29 +0000 (20:30 +0100)
commitdfce283387274446ef5755de7c59baad1da0b93e
tree3be0680e596c8cbf8c7c60c45fc701aef8dd63cf
parent1353b8f32c49235d5c66bad3e197025c26d1684e
rust: i2c: Update ARef and AlwaysRefCounted imports to use sync::aref

Update call sites in `i2c.rs` to import `ARef` and
`AlwaysRefCounted` from `sync::aref` instead of `types`.

This aligns with the ongoing effort to move `ARef` and
`AlwaysRefCounted` to sync.

Suggested-by: Benno Lossin <lossin@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1173
Signed-off-by: Shankari Anand <shankari.ak0208@gmail.com>
Acked-by: Igor Korotin <igor.korotin.linux@gmail.com>
Link: https://patch.msgid.link/20260102202714.184223-3-shankari.ak0208@gmail.com
[ Move `ARef` import into the `kernel` `use` tree above. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/i2c.rs