diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-11 09:52:20 (GMT) |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-12 14:54:45 (GMT) |
commit | be055b2f89b5842f41363b5655a33dffb51a8294 (patch) | |
tree | 6398132673bbef68a876092afb715e9906edae27 /include | |
parent | 44b3decb414919760c7327df05e63372c1bf5d9a (diff) | |
download | linux-fsl-qoriq-be055b2f89b5842f41363b5655a33dffb51a8294.tar.xz |
NFC: RFKILL support
All NFC devices will now get proper RFKILL support as long as they provide
some dev_up and dev_down hooks. Rfkilling an NFC device will bring it down
while it is left to userspace to bring it back up when being rfkill unblocked.
This is very similar to what Bluetooth does.
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/nfc/nfc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/nfc/nfc.h b/include/net/nfc/nfc.h index 87a6417..5eb80bb 100644 --- a/include/net/nfc/nfc.h +++ b/include/net/nfc/nfc.h @@ -122,6 +122,8 @@ struct nfc_dev { bool shutting_down; + struct rfkill *rfkill; + struct nfc_ops *ops; }; #define to_nfc_dev(_dev) container_of(_dev, struct nfc_dev, dev) |