]> www.infradead.org Git - users/hch/misc.git/commit
rust: auxiliary: use generic device drvdata accessors
authorDanilo Krummrich <dakr@kernel.org>
Sat, 21 Jun 2025 19:43:31 +0000 (21:43 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Tue, 8 Jul 2025 22:04:33 +0000 (00:04 +0200)
commitc46f60246f9ae372ecc1f10976a8af3914b3f79e
treec0305ca2bf6257c16f3160354c064178cb38cc23
parent4231712c8e9840c023192032d438f98061b9ee1f
rust: auxiliary: use generic device drvdata accessors

Take advantage of the generic drvdata accessors of the generic Device
type.

While at it, use from_result() instead of match.

Link: https://lore.kernel.org/r/20250621195118.124245-6-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/helpers/auxiliary.c
rust/kernel/auxiliary.rs