mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
2173bff5dc
commit
995a9090b2
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue