diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2021-06-30 11:11:55 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-01 23:08:18 +0300 |
commit | acb288e8047b7569fbc9af6fa6e9405315345103 (patch) | |
tree | 166ec405ae0b4532c9c4559fc4ecd98d82c5e303 /drivers/ptp/ptp_private.h | |
parent | 44c494c8e30e35713c7d11ca3c5ab332cbfabacf (diff) | |
download | linux-acb288e8047b7569fbc9af6fa6e9405315345103.tar.xz |
ptp: add kernel API ptp_get_vclocks_index()
Add kernel API ptp_get_vclocks_index() to get all ptp
vclocks index on pclock.
This is preparation for supporting ptp vclocks info query
through ethtool.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp/ptp_private.h')
-rw-r--r-- | drivers/ptp/ptp_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ptp/ptp_private.h b/drivers/ptp/ptp_private.h index f75fadd9b244..dba6be477067 100644 --- a/drivers/ptp/ptp_private.h +++ b/drivers/ptp/ptp_private.h @@ -96,6 +96,8 @@ static inline bool ptp_vclock_in_use(struct ptp_clock *ptp) return in_use; } +extern struct class *ptp_class; + /* * see ptp_chardev.c */ |