diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/pps/clients/pps_parport.c | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'drivers/pps/clients/pps_parport.c')
-rw-r--r-- | drivers/pps/clients/pps_parport.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/pps/clients/pps_parport.c b/drivers/pps/clients/pps_parport.c index e1b4705ae3e..c571d6dd8f6 100644 --- a/drivers/pps/clients/pps_parport.c +++ b/drivers/pps/clients/pps_parport.c | |||
@@ -133,6 +133,14 @@ out_both: | |||
133 | return; | 133 | return; |
134 | } | 134 | } |
135 | 135 | ||
136 | /* the PPS echo function */ | ||
137 | static void pps_echo(struct pps_device *pps, int event, void *data) | ||
138 | { | ||
139 | dev_info(pps->dev, "echo %s %s\n", | ||
140 | event & PPS_CAPTUREASSERT ? "assert" : "", | ||
141 | event & PPS_CAPTURECLEAR ? "clear" : ""); | ||
142 | } | ||
143 | |||
136 | static void parport_attach(struct parport *port) | 144 | static void parport_attach(struct parport *port) |
137 | { | 145 | { |
138 | struct pps_client_pp *device; | 146 | struct pps_client_pp *device; |
@@ -143,6 +151,7 @@ static void parport_attach(struct parport *port) | |||
143 | PPS_OFFSETASSERT | PPS_OFFSETCLEAR | \ | 151 | PPS_OFFSETASSERT | PPS_OFFSETCLEAR | \ |
144 | PPS_ECHOASSERT | PPS_ECHOCLEAR | \ | 152 | PPS_ECHOASSERT | PPS_ECHOCLEAR | \ |
145 | PPS_CANWAIT | PPS_TSFMT_TSPEC, | 153 | PPS_CANWAIT | PPS_TSFMT_TSPEC, |
154 | .echo = pps_echo, | ||
146 | .owner = THIS_MODULE, | 155 | .owner = THIS_MODULE, |
147 | .dev = NULL | 156 | .dev = NULL |
148 | }; | 157 | }; |