NFC: digital: Add a delay between poll cycles
authorThierry Escande <thierry.escande@collabora.com>
Tue, 7 Jun 2016 14:21:52 +0000 (16:21 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 4 Jul 2016 10:26:27 +0000 (12:26 +0200)
commit7854a44526de84142e367f08288c9f3a33c4c8ee
treebb06beaf8e3ff9803d4018bd2c41bd209b645fcb
parenta81ba50a89930a96e34862cf236b4f4461e741ae
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>
include/net/nfc/digital.h
net/nfc/digital_core.c