summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2026-06-29 13:39:35 +0100
committerDanilo Krummrich <dakr@kernel.org>2026-07-30 16:42:34 +0200
commit3474bbba4ddd1ffaad2fa1d5e4a4a06e55ac45c6 (patch)
tree273fc427a2f1f1c62ec2adf5014dd5cbeee110a3
parentf6e6e96d16b8626628dc91c524f36f9667aac679 (diff)
downloadlinux-next-3474bbba4ddd1ffaad2fa1d5e4a4a06e55ac45c6.tar.gz
linux-next-3474bbba4ddd1ffaad2fa1d5e4a4a06e55ac45c6.zip
rust: driver: remove `IdTable::id`
This is unused. Signed-off-by: Gary Guo <gary@garyguo.net> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://patch.msgid.link/20260629-id_info-v2-1-56fccbe9c5ef@garyguo.net Signed-off-by: Danilo Krummrich <dakr@kernel.org>
-rw-r--r--rust/kernel/device_id.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/rust/kernel/device_id.rs b/rust/kernel/device_id.rs
index 8e9721446014..fbf6d8e6afb9 100644
--- a/rust/kernel/device_id.rs
+++ b/rust/kernel/device_id.rs
@@ -166,9 +166,6 @@ pub trait IdTable<T: RawDeviceId, U> {
/// Obtain the pointer to the ID table.
fn as_ptr(&self) -> *const T::RawType;
- /// Obtain the pointer to the bus specific device ID from an index.
- fn id(&self, index: usize) -> &T::RawType;
-
/// Obtain the pointer to the driver-specific information from an index.
fn info(&self, index: usize) -> &U;
}
@@ -180,10 +177,6 @@ impl<T: RawDeviceId, U, const N: usize> IdTable<T, U> for IdArray<T, U, N> {
core::ptr::from_ref(self).cast()
}
- fn id(&self, index: usize) -> &T::RawType {
- &self.raw_ids.ids[index]
- }
-
fn info(&self, index: usize) -> &U {
&self.id_infos[index]
}