aboutsummaryrefslogtreecommitdiff
path: root/include/misc
diff options
context:
space:
mode:
authorGeorge Spelvin <linux@horizon.com>2013-02-10 04:08:32 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-14 06:44:17 -0700
commit71a521898740fc57b062dddd9cff51c9e835cd43 (patch)
tree2a539425fa4d58c9eb006f2756ad7cffac7c5de0 /include/misc
parentee164499c5f538f1cd8e5cf31e157aff32ea0546 (diff)
pps: Add pps_lookup_dev() function
commit 513b032c98b4b9414aa4e9b4a315cb1bf0380101 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> Cc: Qiang Huang <h.huangqiang@huawei.com> Cc: Li Zefan <lizefan@huawei.com> Cc: Jianguo Wu <wujianguo@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/misc')
0 files changed, 0 insertions, 0 deletions