mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 11:03:07 -04:00
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>
This commit is contained in:
committed by
Danilo Krummrich
parent
f6e6e96d16
commit
3474bbba4d
@@ -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 @@ fn as_ptr(&self) -> *const T::RawType {
|
||||
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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user