diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2021-06-30 16:11:55 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-01 13:08:18 -0700 |
commit | acb288e8047b7569fbc9af6fa6e9405315345103 (patch) | |
tree | 166ec405ae0b4532c9c4559fc4ecd98d82c5e303 /drivers/ptp/ptp_clock.c | |
parent | 44c494c8e30e35713c7d11ca3c5ab332cbfabacf (diff) | |
download | linux-acb288e8047b7569fbc9af6fa6e9405315345103.tar.gz linux-acb288e8047b7569fbc9af6fa6e9405315345103.tar.bz2 linux-acb288e8047b7569fbc9af6fa6e9405315345103.zip |
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_clock.c')
-rw-r--r-- | drivers/ptp/ptp_clock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c index 9205a9362a9d..f012fa581cf4 100644 --- a/drivers/ptp/ptp_clock.c +++ b/drivers/ptp/ptp_clock.c @@ -24,10 +24,11 @@ #define PTP_PPS_EVENT PPS_CAPTUREASSERT #define PTP_PPS_MODE (PTP_PPS_DEFAULTS | PPS_CANWAIT | PPS_TSFMT_TSPEC) +struct class *ptp_class; + /* private globals */ static dev_t ptp_devt; -static struct class *ptp_class; static DEFINE_IDA(ptp_clocks_map); |