drivers: ptp_clock: Place API into iterable section
Add wrapper DEVICE_API macro to all ptp_clock_driver_api instances. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
47ed71ad1d
commit
d76d7115d5
8 changed files with 8 additions and 8 deletions
|
@ -226,7 +226,7 @@ static int my_ptp_clock_rate_adjust(const struct device *dev, double ratio)
|
|||
static struct ptp_context ptp_test_1_context;
|
||||
static struct ptp_context ptp_test_2_context;
|
||||
|
||||
static const struct ptp_clock_driver_api api = {
|
||||
static DEVICE_API(ptp_clock, api) = {
|
||||
.set = my_ptp_clock_set,
|
||||
.get = my_ptp_clock_get,
|
||||
.adjust = my_ptp_clock_adjust,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue