Skip to content

Commit

Permalink
Bluetooth: hci_serdev: make hci_serdev_client_ops static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Marcel Holtmann committed Jun 23, 2017
1 parent 4b943fa commit 640e32c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/bluetooth/hci_serdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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,
};
Expand Down

0 comments on commit 640e32c

Please sign in to comment.