Lines Matching defs:Disabled
32 impl Sealed for super::Disabled {}
50 pub struct Disabled;
56 impl RegulatorState for Disabled {
62 impl IsEnabled for Disabled {}
125 /// # use kernel::regulator::{Voltage, Regulator, Disabled, Enabled};
128 /// let regulator: Regulator<Disabled> = Regulator::<Disabled>::get(dev, c_str!("vcc"))?;
212 /// # use kernel::regulator::{Regulator, Enabled, Disabled};
219 /// let regulator: Regulator<Disabled> =
294 impl Regulator<Disabled> {
301 pub fn try_into_enabled(self) -> Result<Regulator<Enabled>, Error<Disabled>> {
324 Regulator::<Disabled>::get_internal(dev, name)?
330 pub fn try_into_disabled(self) -> Result<Regulator<Disabled>, Error<Enabled>> {
332 // to `Regulator<Disabled>`.