aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorDaniel Almeida <[email protected]>2025-07-17 15:55:24 +0000
committerDanilo Krummrich <[email protected]>2025-07-20 17:43:14 +0000
commitbc4f9045a59963abb142f6a648195ccd73ec39dd (patch)
tree9738ef743455b4f0933d53b17b71fbc69e617855 /drivers/platform/x86/intel/pmt/class.c
parentrust: io: mem: add a generic iomem abstraction (diff)
downloadkernel-bc4f9045a59963abb142f6a648195ccd73ec39dd.tar.gz
kernel-bc4f9045a59963abb142f6a648195ccd73ec39dd.zip
rust: platform: add resource accessors
The previous patches have added the abstractions for Resources and the ability to map them and therefore read and write the underlying memory . The only thing missing to make this accessible for platform devices is to provide accessors that return instances of IoRequest<'a>. These ensure that the resource are valid only for the lifetime of the platform device, and that the platform device is in the Bound state. Therefore, add these accessors. Also make it possible to retrieve resources from platform devices in Rust using either a name or an index. Acked-by: Miguel Ojeda <[email protected]> Signed-off-by: Daniel Almeida <[email protected]> Link: https://lore.kernel.org/r/20250717-topics-tyr-platform_iomem-v15-3-beca780b77e3@collabora.com [ Remove #[expect(dead_code)] from IoRequest::new() and move SAFETY comments right on top of unsafe blocks to avoid clippy warnings for some (older) clippy versions. - Danilo ] Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions