aboutsummaryrefslogtreecommitdiff
path: root/include/net/nfc
diff options
context:
space:
mode:
authorThierry Escande2016-06-07 16:21:52 +0200
committerSamuel Ortiz2016-07-04 12:26:27 +0200
commit7854a44526de84142e367f08288c9f3a33c4c8ee (patch)
treebb06beaf8e3ff9803d4018bd2c41bd209b645fcb /include/net/nfc
parenta81ba50a89930a96e34862cf236b4f4461e741ae (diff)
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.h2
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;