File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ static int nx20p3483_dump_regs(const struct device *dev)
229
229
return 0 ;
230
230
}
231
231
232
- static struct usbc_ppc_driver_api nx20p3483_driver_api = {
232
+ static DEVICE_API ( usbc_ppc , nx20p3483_driver_api ) = {
233
233
.is_dead_battery_mode = nx20p3483_is_dead_battery_mode ,
234
234
.exit_dead_battery_mode = nx20p3483_exit_dead_battery_mode ,
235
235
.is_vbus_source = nx20p3483_is_vbus_source ,
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ static int numaker_ppc_dump_regs(const struct device *dev)
198
198
return numaker_tcpc_ppc_dump_regs (tcpc_dev );
199
199
}
200
200
201
- static const struct usbc_ppc_driver_api numaker_ppc_driver_api = {
201
+ static DEVICE_API ( usbc_ppc , numaker_ppc_driver_api ) = {
202
202
.is_dead_battery_mode = numaker_ppc_is_dead_battery_mode ,
203
203
.exit_dead_battery_mode = numaker_ppc_exit_dead_battery_mode ,
204
204
.is_vbus_source = numaker_ppc_is_vbus_source ,
You can’t perform that action at this time.
0 commit comments