diff options
author | Alexander Gordeev <lasaine@lvk.cs.msu.su> | 2011-01-12 20:00:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 11:03:19 -0500 |
commit | 7a21a3cc0be92e70474cc2ab06cb074f6a7c3f09 (patch) | |
tree | 2a220ba224b023b3f8a8c376184b9385cfcafcee | |
parent | 9ab020cf07e457a8b425bf5af17e704f90f86d8b (diff) |
pps: trivial fixes
Here are some very trivial fixes combined:
- add macro definitions to protect header file from including several times
- remove declaration for an unexistent array
- fix typos
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>
-rw-r--r-- | drivers/pps/kapi.c | 2 | ||||
-rw-r--r-- | include/linux/pps_kernel.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/drivers/pps/kapi.c b/drivers/pps/kapi.c index 1aa02db3ff4e..55f39618261b 100644 --- a/drivers/pps/kapi.c +++ b/drivers/pps/kapi.c | |||
@@ -324,7 +324,7 @@ void pps_event(int source, struct pps_ktime *ts, int event, void *data) | |||
324 | captured = ~0; | 324 | captured = ~0; |
325 | } | 325 | } |
326 | 326 | ||
327 | /* Wake up iif captured somthing */ | 327 | /* Wake up if captured something */ |
328 | if (captured) { | 328 | if (captured) { |
329 | pps->go = ~0; | 329 | pps->go = ~0; |
330 | wake_up_interruptible(&pps->queue); | 330 | wake_up_interruptible(&pps->queue); |
diff --git a/include/linux/pps_kernel.h b/include/linux/pps_kernel.h index e0a193f830ef..23f63c3263bb 100644 --- a/include/linux/pps_kernel.h +++ b/include/linux/pps_kernel.h | |||
@@ -18,6 +18,9 @@ | |||
18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #ifndef LINUX_PPS_KERNEL_H | ||
22 | #define LINUX_PPS_KERNEL_H | ||
23 | |||
21 | #include <linux/pps.h> | 24 | #include <linux/pps.h> |
22 | 25 | ||
23 | #include <linux/cdev.h> | 26 | #include <linux/cdev.h> |
@@ -71,7 +74,6 @@ struct pps_device { | |||
71 | 74 | ||
72 | extern spinlock_t pps_idr_lock; | 75 | extern spinlock_t pps_idr_lock; |
73 | extern struct idr pps_idr; | 76 | extern struct idr pps_idr; |
74 | extern struct timespec pps_irq_ts[]; | ||
75 | 77 | ||
76 | extern struct device_attribute pps_attrs[]; | 78 | extern struct device_attribute pps_attrs[]; |
77 | 79 | ||
@@ -87,3 +89,5 @@ extern void pps_unregister_source(int source); | |||
87 | extern int pps_register_cdev(struct pps_device *pps); | 89 | extern int pps_register_cdev(struct pps_device *pps); |
88 | extern void pps_unregister_cdev(struct pps_device *pps); | 90 | extern void pps_unregister_cdev(struct pps_device *pps); |
89 | extern void pps_event(int source, struct pps_ktime *ts, int event, void *data); | 91 | extern void pps_event(int source, struct pps_ktime *ts, int event, void *data); |
92 | |||
93 | #endif /* LINUX_PPS_KERNEL_H */ | ||