NFC: pn533: improve cmd queue handling
authorAndrey Rusalin <arusalin@dev.rtsoft.ru>
Wed, 28 Dec 2016 17:10:58 +0000 (20:10 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 1 Apr 2017 23:06:22 +0000 (01:06 +0200)
commit5dd9c1bd61a7b684e54897a3a2546124c4077eda
tree850011cebb87f7b8c82ab68e17a209bf21a2eb98
parent068a496c4525c638ffab56449d905b88ef97fe32
NFC: pn533: improve cmd queue handling

Make sure cmd is set before a frame is passed to the transport layer for
sending. In addition pn533_send_async_complete checks if cmd is set before
accessing its members.

Signed-off-by: Michael Thalmeier <michael.thalmeier@hale.at>
Rework a little bit changes in pn532_send_async_complete.

Signed-off-by: Andrey Rusalin <arusalin@dev.rtsoft.ru>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn533/pn533.c