NFC: Changed HCI cmd execution completion result to std linux errno
authorEric Lapuyade <eric.lapuyade@intel.com>
Thu, 3 May 2012 13:35:25 +0000 (15:35 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Jul 2012 20:42:07 +0000 (16:42 -0400)
commit6c1c5b9e1d8a25268a607c762576b5c16e3e7230
tree83508c5809fed818875d51edf8db083a111b6ec2
parent72b06f75fea45fa861f2e137bc94e56aab306c4b
NFC: Changed HCI cmd execution completion result to std linux errno

An HCI command can complete either from an HCI response
(with an HCI result) or as a consequence of any other system
error during processing. The completion therefore needs to take
a standard errno code. The HCI response will convert its result
to a standard errno before calling the completion.

Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/hci/command.c
net/nfc/hci/core.c
net/nfc/hci/hci.h