diff options
author | Arron Wang <arron.wang@intel.com> | 2013-08-23 04:02:08 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-09-24 19:35:39 -0400 |
commit | d8eb18eecaf358e37f4941c2b8cba3c4b8122b7f (patch) | |
tree | 8015cd632f32844243672661919fb832ba6d93f1 /net/nfc/core.c | |
parent | 5faba2fdf9819ebebd6d1a1cef70fddb0518cd08 (diff) |
NFC: Export nfc_find_se()
This will be needed by all NFC driver implementing the SE ops.
Signed-off-by: Arron Wang <arron.wang@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/core.c')
-rw-r--r-- | net/nfc/core.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/nfc/core.c b/net/nfc/core.c index e92923cf3e03..269ffc5288d0 100644 --- a/net/nfc/core.c +++ b/net/nfc/core.c | |||
@@ -536,7 +536,7 @@ error: | |||
536 | return rc; | 536 | return rc; |
537 | } | 537 | } |
538 | 538 | ||
539 | static struct nfc_se *find_se(struct nfc_dev *dev, u32 se_idx) | 539 | struct nfc_se *nfc_find_se(struct nfc_dev *dev, u32 se_idx) |
540 | { | 540 | { |
541 | struct nfc_se *se, *n; | 541 | struct nfc_se *se, *n; |
542 | 542 | ||
@@ -546,6 +546,7 @@ static struct nfc_se *find_se(struct nfc_dev *dev, u32 se_idx) | |||
546 | 546 | ||
547 | return NULL; | 547 | return NULL; |
548 | } | 548 | } |
549 | EXPORT_SYMBOL(nfc_find_se); | ||
549 | 550 | ||
550 | int nfc_enable_se(struct nfc_dev *dev, u32 se_idx) | 551 | int nfc_enable_se(struct nfc_dev *dev, u32 se_idx) |
551 | { | 552 | { |
@@ -577,7 +578,7 @@ int nfc_enable_se(struct nfc_dev *dev, u32 se_idx) | |||
577 | goto error; | 578 | goto error; |
578 | } | 579 | } |
579 | 580 | ||
580 | se = find_se(dev, se_idx); | 581 | se = nfc_find_se(dev, se_idx); |
581 | if (!se) { | 582 | if (!se) { |
582 | rc = -EINVAL; | 583 | rc = -EINVAL; |
583 | goto error; | 584 | goto error; |
@@ -622,7 +623,7 @@ int nfc_disable_se(struct nfc_dev *dev, u32 se_idx) | |||
622 | goto error; | 623 | goto error; |
623 | } | 624 | } |
624 | 625 | ||
625 | se = find_se(dev, se_idx); | 626 | se = nfc_find_se(dev, se_idx); |
626 | if (!se) { | 627 | if (!se) { |
627 | rc = -EINVAL; | 628 | rc = -EINVAL; |
628 | goto error; | 629 | goto error; |
@@ -881,7 +882,7 @@ int nfc_add_se(struct nfc_dev *dev, u32 se_idx, u16 type) | |||
881 | 882 | ||
882 | pr_debug("%s se index %d\n", dev_name(&dev->dev), se_idx); | 883 | pr_debug("%s se index %d\n", dev_name(&dev->dev), se_idx); |
883 | 884 | ||
884 | se = find_se(dev, se_idx); | 885 | se = nfc_find_se(dev, se_idx); |
885 | if (se) | 886 | if (se) |
886 | return -EALREADY; | 887 | return -EALREADY; |
887 | 888 | ||