11#ifndef ZEPHYR_INCLUDE_DRIVERS_REGULATOR_H_
12#define ZEPHYR_INCLUDE_DRIVERS_REGULATOR_H_
64 return api->
enable(reg, cli);
Public APIs for GPIO drivers.
static int regulator_disable(const struct device *reg)
Disable a regulator.
Definition: regulator.h:88
static int regulator_enable(const struct device *reg, struct onoff_client *cli)
Enable a regulator.
Definition: regulator.h:58
Runtime device structure (in ROM) per driver instance.
Definition: device.h:367
const void * api
Definition: device.h:373
State associated with a client of an on-off service.
Definition: onoff.h:273
Driver-specific API functions to support regulator control.
Definition: regulator.h:32
int(* enable)(const struct device *dev, struct onoff_client *cli)
Definition: regulator.h:33
int(* disable)(const struct device *dev)
Definition: regulator.h:34