diff options
author | Robert Baldyga <r.baldyga@samsung.com> | 2015-08-20 17:26:00 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-08-20 21:22:34 +0200 |
commit | fdf79bd48876812acf0de58ed7a8bc1b3a3c67d6 (patch) | |
tree | f2407ccb7a408e854260d99fe0a93a29a7500b67 /include/net/nfc | |
parent | NFC: trf7970a: Add NULL check to clear up smatch warning (diff) | |
download | linux-fdf79bd48876812acf0de58ed7a8bc1b3a3c67d6.tar.xz linux-fdf79bd48876812acf0de58ed7a8bc1b3a3c67d6.zip |
NFC: nci: Add post_setup handler
Some drivers require non-standard configuration after NCI_CORE_INIT
request, because they need to know ndev->manufact_specific_info or
ndev->manufact_id. This patch adds post_setup handler allowing to do
such custom configuration.
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/net/nfc')
-rw-r--r-- | include/net/nfc/nci_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/nfc/nci_core.h b/include/net/nfc/nci_core.h index 01fc8c531115..1bdaa5f51107 100644 --- a/include/net/nfc/nci_core.h +++ b/include/net/nfc/nci_core.h @@ -79,6 +79,7 @@ struct nci_ops { int (*close)(struct nci_dev *ndev); int (*send)(struct nci_dev *ndev, struct sk_buff *skb); int (*setup)(struct nci_dev *ndev); + int (*post_setup)(struct nci_dev *ndev); int (*fw_download)(struct nci_dev *ndev, const char *firmware_name); __u32 (*get_rfprotocol)(struct nci_dev *ndev, __u8 rf_protocol); int (*discover_se)(struct nci_dev *ndev); |