NFC: Introduce vendor commands structures
Together with inline routines to associate a vendor commands array with an NFC device. Vendor commands allow vendors to implement their very specific operations from driver code instead of adding new stack ops for non NFC generic commands. Vendors need to select their own unique IDs and use that as a namespace for defining sub commands. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
@@ -179,6 +179,13 @@ void nfc_hci_unregister_device(struct nfc_hci_dev *hdev);
|
||||
void nfc_hci_set_clientdata(struct nfc_hci_dev *hdev, void *clientdata);
|
||||
void *nfc_hci_get_clientdata(struct nfc_hci_dev *hdev);
|
||||
|
||||
static inline int nfc_hci_set_vendor_cmds(struct nfc_hci_dev *hdev,
|
||||
struct nfc_vendor_cmd *cmds,
|
||||
int n_cmds)
|
||||
{
|
||||
return nfc_set_vendor_cmds(hdev->ndev, cmds, n_cmds);
|
||||
}
|
||||
|
||||
void nfc_hci_driver_failure(struct nfc_hci_dev *hdev, int err);
|
||||
|
||||
int nfc_hci_result_to_errno(u8 result);
|
||||
|
||||
Reference in New Issue
Block a user