diff options
author | Thierry Escande <thierry.escande@collabora.com> | 2016-06-07 16:21:52 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2016-07-04 12:26:27 +0200 |
commit | 7854a44526de84142e367f08288c9f3a33c4c8ee (patch) | |
tree | bb06beaf8e3ff9803d4018bd2c41bd209b645fcb /include/net/nfc | |
parent | NFC: port100: Explicitly set NFC-F framing for NFC-DEP (diff) | |
download | linux-7854a44526de84142e367f08288c9f3a33c4c8ee.tar.xz linux-7854a44526de84142e367f08288c9f3a33c4c8ee.zip |
NFC: digital: Add a delay between poll cycles
This replaces the polling work struct with a delayed work struct and add
a 10 ms delay between 2 poll cycles. This avoids to flood the device
with 'switch off'/'switch on' commands.
Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/net/nfc')
-rw-r--r-- | include/net/nfc/digital.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/nfc/digital.h b/include/net/nfc/digital.h index 0ae101eef0f4..506e3f6eabef 100644 --- a/include/net/nfc/digital.h +++ b/include/net/nfc/digital.h @@ -220,7 +220,7 @@ struct nfc_digital_dev { struct list_head cmd_queue; struct mutex cmd_lock; - struct work_struct poll_work; + struct delayed_work poll_work; u8 curr_protocol; u8 curr_rf_tech; |