diff options
author | Richard Cochran <richardcochran@gmail.com> | 2012-04-04 02:59:16 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-04 13:28:45 +0400 |
commit | 995a9090b2b7dc734351f3ac0ba8d913ffb87001 (patch) | |
tree | ff47973003ce5c420ca556739885c85d9daa68ee /include/linux/ptp_clock_kernel.h | |
parent | 2173bff5dcff4ca02226978f39648b66a8c3ca1e (diff) | |
download | linux-995a9090b2b7dc734351f3ac0ba8d913ffb87001.tar.xz |
ptp: Add a method for obtaining the device index.
This commit adds a method that MAC drivers may call in order to find out
the device number of their associated PTP Hardware Clock.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/ptp_clock_kernel.h')
-rw-r--r-- | include/linux/ptp_clock_kernel.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/ptp_clock_kernel.h b/include/linux/ptp_clock_kernel.h index dd2e44fba63e..945704c2ed65 100644 --- a/include/linux/ptp_clock_kernel.h +++ b/include/linux/ptp_clock_kernel.h @@ -136,4 +136,12 @@ struct ptp_clock_event { extern void ptp_clock_event(struct ptp_clock *ptp, struct ptp_clock_event *event); +/** + * ptp_clock_index() - obtain the device index of a PTP clock + * + * @ptp: The clock obtained from ptp_clock_register(). + */ + +extern int ptp_clock_index(struct ptp_clock *ptp); + #endif |