mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
NFC: Add dev_up and dev_down control operations
Add 2 new nfc control operations: dev_up to turn on the nfc device dev_down to turn off the nfc device Signed-off-by: Ilan Elias <ilane@ti.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
a7ce1c9446
commit
8b3fe7b591
6 changed files with 149 additions and 0 deletions
|
|
@ -39,6 +39,10 @@
|
|||
*
|
||||
* @NFC_CMD_GET_DEVICE: request information about a device (requires
|
||||
* %NFC_ATTR_DEVICE_INDEX) or dump request to get a list of all nfc devices
|
||||
* @NFC_CMD_DEV_UP: turn on the nfc device
|
||||
* (requires %NFC_ATTR_DEVICE_INDEX)
|
||||
* @NFC_CMD_DEV_DOWN: turn off the nfc device
|
||||
* (requires %NFC_ATTR_DEVICE_INDEX)
|
||||
* @NFC_CMD_START_POLL: start polling for targets using the given protocols
|
||||
* (requires %NFC_ATTR_DEVICE_INDEX and %NFC_ATTR_PROTOCOLS)
|
||||
* @NFC_CMD_STOP_POLL: stop polling for targets (requires
|
||||
|
|
@ -56,6 +60,8 @@
|
|||
enum nfc_commands {
|
||||
NFC_CMD_UNSPEC,
|
||||
NFC_CMD_GET_DEVICE,
|
||||
NFC_CMD_DEV_UP,
|
||||
NFC_CMD_DEV_DOWN,
|
||||
NFC_CMD_START_POLL,
|
||||
NFC_CMD_STOP_POLL,
|
||||
NFC_CMD_GET_TARGET,
|
||||
|
|
|
|||
Loading…
Reference in a new issue