#include #include "taia.h" static const struct taia tolerance_taia = { .sec.x = 0, .nano = 700000000ULL, /* 700ms acceptance window */ .atto = 0, }; bool taia_looks_good(struct taia *arr_taia, struct taia *pkt_taia) { bool good = false; struct taia tmp; if (taia_less(arr_taia, pkt_taia)) { taia_sub(&tmp, pkt_taia, arr_taia); if (taia_less(&tmp, &tolerance_taia)) good = true; } else { taia_sub(&tmp, arr_taia, pkt_taia); if (taia_less(&tmp, &tolerance_taia)) good = true; } return good; } 'vcs-git' href='http:///git.distanz.ch/cgit.cgi/linux/net-next.git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAceLan Kao <acelan.kao@canonical.com>2016-07-01 09:51:49 +0800
committerDarren Hart <dvhart@linux.intel.com>2016-07-22 13:17:40 -0700
commit332e081225fc2a657aa587c42943d5f5a7dae88b (patch)
tree74254faa2c2c0ca64d41bf4153a485467bfeba5f /Documentation
parentdf2294fb64285d2d793cf50c682ac4bfddf56c4c (diff)
intel-vbtn: new driver for Intel Virtual Button
This driver supports power button event in Intel Virtual Button currently. New Dell XPS 13 requires this driver for the power button. This driver is copied/modified from intel-hid.c Most credit goes to the author of intel-hid.c, Alex Hung <alex.hung@canonical.com> Signed-off-by: AceLan Kao <acelan.kao@canonical.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'Documentation')