File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ static int coredump_init(const struct device *dev)
126
126
return 0 ;
127
127
}
128
128
129
- static const struct coredump_driver_api coredump_api = {
129
+ static DEVICE_API ( coredump , coredump_api ) = {
130
130
.dump = coredump_impl_dump ,
131
131
.register_memory = coredump_impl_register_memory ,
132
132
.unregister_memory = coredump_impl_unregister_memory ,
Original file line number Diff line number Diff line change @@ -101,9 +101,7 @@ static void dump_thread(struct k_thread *thread)
101
101
#if defined(CONFIG_COREDUMP_DEVICE )
102
102
static void process_coredump_dev_memory (const struct device * dev )
103
103
{
104
- struct coredump_driver_api * api = (struct coredump_driver_api * )dev -> api ;
105
-
106
- api -> dump (dev );
104
+ DEVICE_API_GET (coredump , dev )-> dump (dev );
107
105
}
108
106
#endif
109
107
You can’t perform that action at this time.
0 commit comments