We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f894b9 commit 15c3522Copy full SHA for 15c3522
1 file changed
rust/kernel/i2c.rs
@@ -208,6 +208,11 @@ impl Client {
208
// INVARIANT: The safety requirements of the function ensure the lifetime invariant.
209
Self { ptr }
210
}
211
+
212
+ /// Returns the raw I2C client structure
213
+ pub fn raw_client(&self) -> *mut bindings::i2c_client {
214
+ self.ptr
215
+ }
216
217
218
unsafe impl RawDevice for Client {
0 commit comments