mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
ptp: ptp_clock: Publish scaled_ppm_to_ppb
Publish scaled_ppm_to_ppb to allow drivers to use it. Signed-off-by: Shalom Toledo <[email protected]> Reviewed-by: Petr Machata <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
1078645af6
commit
4368dada5b
2 changed files with 10 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ static void enqueue_external_timestamp(struct timestamp_event_queue *queue,
|
|||
spin_unlock_irqrestore(&queue->lock, flags);
|
||||
}
|
||||
|
||||
static s32 scaled_ppm_to_ppb(long ppm)
|
||||
s32 scaled_ppm_to_ppb(long ppm)
|
||||
{
|
||||
/*
|
||||
* The 'freq' field in the 'struct timex' is in parts per
|
||||
|
|
@ -82,6 +82,7 @@ static s32 scaled_ppm_to_ppb(long ppm)
|
|||
ppb >>= 13;
|
||||
return (s32) ppb;
|
||||
}
|
||||
EXPORT_SYMBOL(scaled_ppm_to_ppb);
|
||||
|
||||
/* posix clock implementation */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue