Skip to content

Commit 59850f1

Browse files
pdgendtfabiobaltieri
authored andcommitted
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 <[email protected]>
1 parent 9217d92 commit 59850f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/regulator/regulator_pf1550.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,11 +378,11 @@ static int regulator_pf1550_common_init(const struct device *dev)
378378
return 0;
379379
}
380380

381-
static const struct regulator_parent_driver_api parent_api = {
381+
static DEVICE_API(regulator_parent, parent_api) = {
382382
.ship_mode = regulator_pf1550_power_off,
383383
};
384384

385-
static const struct regulator_driver_api api = {
385+
static DEVICE_API(regulator, api) = {
386386
.enable = regulator_pf1550_enable,
387387
.disable = regulator_pf1550_disable,
388388
.count_voltages = regulator_pf1550_count_voltages,

0 commit comments

Comments
 (0)