aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2014-11-12 18:30:35 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2014-12-01 20:01:21 -0500
commitba4db551bb48943bcebdacc30219d35a1248de11 (patch)
tree8f3d138ac8fc898240d9c08676f237c07438dc8d /net/nfc
parentc7dea2525b0a2c10423ddabea7c0ccc635380ba7 (diff)
NFC: nci: Update nci_discover_se to run proprietary commands to discover all available secure element
Some NFC controller using NCI protocols may need a proprietary commands flow to discover all available secure element Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/nci/core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c
index a354d1985d50..4044973084a7 100644
--- a/net/nfc/nci/core.c
+++ b/net/nfc/nci/core.c
@@ -756,6 +756,11 @@ static int nci_disable_se(struct nfc_dev *nfc_dev, u32 se_idx)
756 756
757static int nci_discover_se(struct nfc_dev *nfc_dev) 757static int nci_discover_se(struct nfc_dev *nfc_dev)
758{ 758{
759 struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
760
761 if (ndev->ops->discover_se)
762 return ndev->ops->discover_se(ndev);
763
759 return 0; 764 return 0;
760} 765}
761 766