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:
Pieter De Gendt 2024-11-28 22:44:39 +01:00 committed by Benjamin Cabé
commit d76d7115d5
8 changed files with 8 additions and 8 deletions

View file

@ -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,