drivers: regulator: Wrap driver instances in device API macro
Use the device API macro to place the driver API instance into an iterable section. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
9217d923c2
commit
59850f1340
1 changed files with 2 additions and 2 deletions
|
@ -378,11 +378,11 @@ static int regulator_pf1550_common_init(const struct device *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct regulator_parent_driver_api parent_api = {
|
static DEVICE_API(regulator_parent, parent_api) = {
|
||||||
.ship_mode = regulator_pf1550_power_off,
|
.ship_mode = regulator_pf1550_power_off,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct regulator_driver_api api = {
|
static DEVICE_API(regulator, api) = {
|
||||||
.enable = regulator_pf1550_enable,
|
.enable = regulator_pf1550_enable,
|
||||||
.disable = regulator_pf1550_disable,
|
.disable = regulator_pf1550_disable,
|
||||||
.count_voltages = regulator_pf1550_count_voltages,
|
.count_voltages = regulator_pf1550_count_voltages,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue