drivers: charger: 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
5af9a0ae4c
commit
9217d923c2
1 changed files with 1 additions and 1 deletions
|
@ -660,7 +660,7 @@ static int pf1550_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const struct charger_driver_api pf1550_driver_api = {
|
||||
static DEVICE_API(charger, pf1550_driver_api) = {
|
||||
.get_property = pf1550_get_prop,
|
||||
.set_property = pf1550_set_prop,
|
||||
.charge_enable = pf1550_set_enabled,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue