Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300466
b: refs/heads/master
c: 995a909
h: refs/heads/master
v: v3
  • Loading branch information
Richard Cochran authored and David S. Miller committed Apr 4, 2012
1 parent 9e9a331 commit af7e4d5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2173bff5dcff4ca02226978f39648b66a8c3ca1e
refs/heads/master: 995a9090b2b7dc734351f3ac0ba8d913ffb87001
6 changes: 6 additions & 0 deletions trunk/drivers/ptp/ptp_clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@ void ptp_clock_event(struct ptp_clock *ptp, struct ptp_clock_event *event)
}
EXPORT_SYMBOL(ptp_clock_event);

int ptp_clock_index(struct ptp_clock *ptp)
{
return ptp->index;
}
EXPORT_SYMBOL(ptp_clock_index);

/* module operations */

static void __exit ptp_exit(void)
Expand Down
8 changes: 8 additions & 0 deletions trunk/include/linux/ptp_clock_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit af7e4d5

Please sign in to comment.