pub fn devm_enable(dev: &Device<Bound>, name: &CStr) -> ResultExpand description
Obtains and enables a devres-managed regulator for a device.
This calls regulator_disable() and regulator_put() automatically on
driver detach.
This API is identical to devm_regulator_get_enable(), and should be
preferred over the Regulator<T: RegulatorState> API if the caller only
cares about the regulator being enabled.