diff options
| author | Shalom Toledo <shalomt@mellanox.com> | 2019-06-11 11:45:09 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-06-14 01:34:55 -0400 |
| commit | 4368dada5b37e74a13b892ca5cef8a7d558e9a5f (patch) | |
| tree | e7aaa25c47d9b1ba375b2bec385fbeece9b7eb24 /include/linux/ptp_clock_kernel.h | |
| parent | 1078645af6c02fd82f53c2a72e6f5ef21fd951e8 (diff) | |
ptp: ptp_clock: Publish scaled_ppm_to_ppb
Publish scaled_ppm_to_ppb to allow drivers to use it.
Signed-off-by: Shalom Toledo <shalomt@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.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 28eb9c792522..93cc4f1d444a 100644 --- a/include/linux/ptp_clock_kernel.h +++ b/include/linux/ptp_clock_kernel.h | |||
| @@ -213,6 +213,14 @@ extern void ptp_clock_event(struct ptp_clock *ptp, | |||
| 213 | extern int ptp_clock_index(struct ptp_clock *ptp); | 213 | extern int ptp_clock_index(struct ptp_clock *ptp); |
| 214 | 214 | ||
| 215 | /** | 215 | /** |
| 216 | * scaled_ppm_to_ppb() - convert scaled ppm to ppb | ||
| 217 | * | ||
| 218 | * @ppm: Parts per million, but with a 16 bit binary fractional field | ||
| 219 | */ | ||
| 220 | |||
| 221 | extern s32 scaled_ppm_to_ppb(long ppm); | ||
| 222 | |||
| 223 | /** | ||
| 216 | * ptp_find_pin() - obtain the pin index of a given auxiliary function | 224 | * ptp_find_pin() - obtain the pin index of a given auxiliary function |
| 217 | * | 225 | * |
| 218 | * @ptp: The clock obtained from ptp_clock_register(). | 226 | * @ptp: The clock obtained from ptp_clock_register(). |
