NFC: Changed event_received hci ops result semantic
authorEric Lapuyade <eric.lapuyade@linux.intel.com>
Tue, 4 Dec 2012 15:43:24 +0000 (16:43 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 9 Jan 2013 23:51:49 +0000 (00:51 +0100)
commit40d06d3647ea872a7346be1f6859f18cd0fe08d3
treed219fb5d6eeaa5c0ece6cb554c0cf5b39fb6137f
parent27c31191b3d7ff32c266a5dbea344b9aa96ebf14
NFC: Changed event_received hci ops result semantic

Some chips use a standard HCI event code, destined to a proprietary
gate, with a different meaning. Therefore, the HCI driver must always
have a chance to intercept the event before standard processing is
attempted.
The new semantic specifies that the result value "1" means that the
driver doesn't especially handle the event. result <= 0 means it was
handled.

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