diff options
author | Jon Medhurst <tixy@linaro.org> | 2014-10-30 18:01:15 +0000 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2014-10-30 18:04:22 +0000 |
commit | 96b56157b38cffced997ffa71fdd4bf71024fc67 (patch) | |
tree | b5d66817374fd6d39a295492f1a36a2a30b93486 /drivers/gator/gator_events_mmapped.c | |
parent | e31266f78058409d18d48e0afa8339e77322b17f (diff) |
gator: Version 5.20
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'drivers/gator/gator_events_mmapped.c')
-rw-r--r-- | drivers/gator/gator_events_mmapped.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gator/gator_events_mmapped.c b/drivers/gator/gator_events_mmapped.c index 5bc01c42c3a2..6b2af995ed41 100644 --- a/drivers/gator/gator_events_mmapped.c +++ b/drivers/gator/gator_events_mmapped.c @@ -103,7 +103,7 @@ static int mmapped_simulate(int counter, int delta_in_us) switch (counter) { case 0: /* sort-of-sine */ { - static int t = 0; + static int t; int x; t += delta_in_us; @@ -140,7 +140,7 @@ static int mmapped_simulate(int counter, int delta_in_us) break; case 2: /* PWM signal */ { - static int dc, x, t = 0; + static int dc, x, t; t += delta_in_us; if (t > 1000000) @@ -157,7 +157,7 @@ static int mmapped_simulate(int counter, int delta_in_us) return result; } -static int gator_events_mmapped_read(int **buffer) +static int gator_events_mmapped_read(int **buffer, bool sched_switch) { int i; int len = 0; |