mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
pps: unify timestamp gathering
Add a helper function to gather timestamps. This way clients don't have to duplicate it. Signed-off-by: Alexander Gordeev <lasaine@lvk.cs.msu.su> Acked-by: Rodolfo Giometti <giometti@linux.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
3003d55b59
commit
6f4229b511
6 changed files with 45 additions and 31 deletions
|
@ -101,7 +101,7 @@
|
|||
* any pending driver I/O is completed.
|
||||
*
|
||||
* void (*dcd_change)(struct tty_struct *tty, unsigned int status,
|
||||
* struct timespec *ts)
|
||||
* struct pps_event_time *ts)
|
||||
*
|
||||
* Tells the discipline that the DCD pin has changed its status and
|
||||
* the relative timestamp. Pointer ts can be NULL.
|
||||
|
@ -109,6 +109,7 @@
|
|||
|
||||
#include <linux/fs.h>
|
||||
#include <linux/wait.h>
|
||||
#include <linux/pps_kernel.h>
|
||||
|
||||
struct tty_ldisc_ops {
|
||||
int magic;
|
||||
|
@ -143,7 +144,7 @@ struct tty_ldisc_ops {
|
|||
char *fp, int count);
|
||||
void (*write_wakeup)(struct tty_struct *);
|
||||
void (*dcd_change)(struct tty_struct *, unsigned int,
|
||||
struct timespec *);
|
||||
struct pps_event_time *);
|
||||
|
||||
struct module *owner;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue