mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04: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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
2173bff5dc
commit
995a9090b2
2 changed files with 14 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue