mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
NFC: HCI ops should not be exposed globally
The variable 'hci_nfc_ops' is only referenced in this file and should be marked static to prevent it from being exposed globally. Quites the sparse warning: warning: symbol 'hci_nfc_ops' was not declared. Should it be static? Signed-off-by: H Hartley Sweeten <[email protected]> Cc: Lauro Ramos Venancio <[email protected]> Cc: Aloisio Almeida Jr <[email protected]> Cc: Samuel Ortiz <[email protected]> Cc: "David S. Miller" <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
799030b75a
commit
bd007bea21
1 changed files with 1 additions and 1 deletions
|
|
@ -585,7 +585,7 @@ static int hci_check_presence(struct nfc_dev *nfc_dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
struct nfc_ops hci_nfc_ops = {
|
||||
static struct nfc_ops hci_nfc_ops = {
|
||||
.dev_up = hci_dev_up,
|
||||
.dev_down = hci_dev_down,
|
||||
.start_poll = hci_start_poll,
|
||||
|
|
|
|||
Loading…
Reference in a new issue