Files
i2som-imx-linux/include/linux
George Spelvin 7063a9950d pps: Add pps_lookup_dev() function
commit 513b032c98 upstream.

The PPS serial line discipline wants to attach a PPS device to a tty
without changing the tty code to add a struct pps_device * pointer.

Since the number of PPS devices in a typical system is generally very low
(n=1 is by far the most common), it's practical to search the entire list
of allocated pps devices.  (We capture the timestamp before the lookup,
so the timing isn't affected.)

It is a bit ugly that this function, which is part of the in-kernel
PPS API, has to be in pps.c as opposed to kapi,c, but that's not
something that affects users.

Signed-off-by: George Spelvin <linux@horizon.com>
Acked-by: Rodolfo Giometti <giometti@enneenne.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2013-03-06 03:23:57 +00:00
..
2012-11-16 16:46:48 +00:00
2013-01-03 03:32:57 +00:00
2013-03-06 03:23:57 +00:00
2012-10-10 03:30:45 +01:00
2013-01-03 03:32:54 +00:00
2013-01-16 01:13:25 +00:00