diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-06-23 11:37:38 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2017-06-23 11:49:11 +0300 |
commit | 640e32c9ee55a7938eb7d629a87f46a94f77a87f (patch) | |
tree | 974c38c6e0d5208c517aef05b8ccf1396256378f /drivers/bluetooth/hci_serdev.c | |
parent | 4b943faedfc29eda882851b772c06cecdf78d8e3 (diff) | |
download | linux-640e32c9ee55a7938eb7d629a87f46a94f77a87f.tar.xz |
Bluetooth: hci_serdev: make hci_serdev_client_ops static
The structure hci_serdev_client_ops does not need to be in global scope
and is not modified, so make it static.
Cleans up sparse warning:
"symbol 'hci_serdev_client_ops' was not declared. Should it be static?"
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_serdev.c')
-rw-r--r-- | drivers/bluetooth/hci_serdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_serdev.c b/drivers/bluetooth/hci_serdev.c index 7de0edc0ff8c..aea930101dd2 100644 --- a/drivers/bluetooth/hci_serdev.c +++ b/drivers/bluetooth/hci_serdev.c @@ -31,7 +31,7 @@ #include "hci_uart.h" -struct serdev_device_ops hci_serdev_client_ops; +static struct serdev_device_ops hci_serdev_client_ops; static inline void hci_uart_tx_complete(struct hci_uart *hu, int pkt_type) { @@ -268,7 +268,7 @@ static int hci_uart_receive_buf(struct serdev_device *serdev, const u8 *data, return count; } -struct serdev_device_ops hci_serdev_client_ops = { +static struct serdev_device_ops hci_serdev_client_ops = { .receive_buf = hci_uart_receive_buf, .write_wakeup = hci_uart_write_wakeup, }; |