Skip to content

Commit

Permalink
pps: trivial fixes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Gordeev authored and Linus Torvalds committed Jan 13, 2011
1 parent 9ab020c commit 7a21a3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/pps/kapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ void pps_event(int source, struct pps_ktime *ts, int event, void *data)
captured = ~0;
}

/* Wake up iif captured somthing */
/* Wake up if captured something */
if (captured) {
pps->go = ~0;
wake_up_interruptible(&pps->queue);
Expand Down
6 changes: 5 additions & 1 deletion include/linux/pps_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#ifndef LINUX_PPS_KERNEL_H
#define LINUX_PPS_KERNEL_H

#include <linux/pps.h>

#include <linux/cdev.h>
Expand Down Expand Up @@ -71,7 +74,6 @@ struct pps_device {

extern spinlock_t pps_idr_lock;
extern struct idr pps_idr;
extern struct timespec pps_irq_ts[];

extern struct device_attribute pps_attrs[];

Expand All @@ -87,3 +89,5 @@ extern void pps_unregister_source(int source);
extern int pps_register_cdev(struct pps_device *pps);
extern void pps_unregister_cdev(struct pps_device *pps);
extern void pps_event(int source, struct pps_ktime *ts, int event, void *data);

#endif /* LINUX_PPS_KERNEL_H */

0 comments on commit 7a21a3c

Please sign in to comment.