diff options
Diffstat (limited to 'rust/kernel')
| -rw-r--r-- | rust/kernel/device_id.rs | 7 |
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] } |
