diff options
author | Mark Brown <broonie@kernel.org> | 2025-09-16 13:52:09 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-09-16 13:52:09 +0100 |
commit | 41b5c85ba94057c955f0f6348c551093917da06d (patch) | |
tree | 3e97b9272a0de53cf2c590cdc0f72c76ddfc8c5c /rust/kernel/device.rs | |
parent | 2e0fd4583d0efcdc260e61a22666c8368f505353 (diff) | |
parent | 6a1f303cba45fa3b612d5a2898b1b1b045eb74e3 (diff) |
regulator: max77838: add max77838 regulator driver
Merge series from Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>:
This patchset adds support for the max77838 PMIC. It's used on the Galaxy
S7 lineup of phones, and provides regulators for the display.
Diffstat (limited to 'rust/kernel/device.rs')
-rw-r--r-- | rust/kernel/device.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rust/kernel/device.rs b/rust/kernel/device.rs index 5902b3714a16..a1db49eb159a 100644 --- a/rust/kernel/device.rs +++ b/rust/kernel/device.rs @@ -138,7 +138,9 @@ pub mod property; /// } /// ``` /// -/// An example for a class device implementation is [`drm::Device`]. +/// An example for a class device implementation is +#[cfg_attr(CONFIG_DRM = "y", doc = "[`drm::Device`](kernel::drm::Device).")] +#[cfg_attr(not(CONFIG_DRM = "y"), doc = "`drm::Device`.")] /// /// # Invariants /// @@ -151,7 +153,6 @@ pub mod property; /// dropped from any thread. /// /// [`AlwaysRefCounted`]: kernel::types::AlwaysRefCounted -/// [`drm::Device`]: kernel::drm::Device /// [`impl_device_context_deref`]: kernel::impl_device_context_deref /// [`pci::Device`]: kernel::pci::Device /// [`platform::Device`]: kernel::platform::Device |