We can see and account for any overruns caused by IRQ latency
now that we fetch the status register.  This patch adds a /sys
node so it can be queried, and accounting.

Signed-off-by: Andy Green <[email protected]>
---

 include/linux/lis302dl.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/lis302dl.h b/include/linux/lis302dl.h
index 662ac60..01c4ac9 100644
--- a/include/linux/lis302dl.h
+++ b/include/linux/lis302dl.h
@@ -31,6 +31,7 @@ struct lis302dl_info {
        unsigned int flags;
        unsigned int threshold;
        unsigned int duration;
+       u32 overruns;
        struct {
                unsigned int threshold; /* mg */
                unsigned int duration;  /* ms */


Reply via email to