diff options
author | Matthew Bouyack <mbouyack@google.com> | 2020-11-20 16:58:41 -0800 |
---|---|---|
committer | Andrew Evans <andrewevans@google.com> | 2022-03-09 15:04:44 -0800 |
commit | 8e55f7af65a634b1bef7ce9af58e2714604b4c38 (patch) | |
tree | 9180a65b33ff662fce923816c7230af3b1f46220 | |
parent | d295937aa126eb1454151605e4bb969ab880a47b (diff) | |
download | rotary-encoders-8e55f7af65a634b1bef7ce9af58e2714604b4c38.tar.gz |
Remove always-false calibration check
Don't check for calibration before registering interrupt.
This was causing us to skip interrupt registration.
Bug: 168725669
Change-Id: I55085bd3f7e6613cd3737c6172cd7610ee8924f7
-rw-r--r-- | ots_pat9126/pat9126.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ots_pat9126/pat9126.c b/ots_pat9126/pat9126.c index 752ddba..307647a 100644 --- a/ots_pat9126/pat9126.c +++ b/ots_pat9126/pat9126.c @@ -44,7 +44,6 @@ struct pixart_pat9126_data { bool is_initialized = false; /*Persist Flags*/ -static int already_calibrated = 0; extern char *saved_command_line; struct mutex irq_mutex; @@ -515,7 +514,7 @@ static int pat9126_i2c_probe(struct i2c_client *client, return ret; } INIT_DELAYED_WORK(&data->polling_work, pat9126_work_handler); - if (already_calibrated == 1 && en_irq_cnt == 0) { + if (en_irq_cnt == 0) { pr_err("[PAT9126]: Probe Enable Irq. \n"); ret = devm_request_threaded_irq(dev, client->irq, NULL, pat9126_irq, IRQF_ONESHOT | IRQF_TRIGGER_LOW, |