Skip to content

Commit 640e32c

Browse files
Colin Ian Kingholtmann
authored andcommitted
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>
1 parent 4b943fa commit 640e32c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/bluetooth/hci_serdev.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#include "hci_uart.h"
3333

34-
struct serdev_device_ops hci_serdev_client_ops;
34+
static struct serdev_device_ops hci_serdev_client_ops;
3535

3636
static inline void hci_uart_tx_complete(struct hci_uart *hu, int pkt_type)
3737
{
@@ -268,7 +268,7 @@ static int hci_uart_receive_buf(struct serdev_device *serdev, const u8 *data,
268268
return count;
269269
}
270270

271-
struct serdev_device_ops hci_serdev_client_ops = {
271+
static struct serdev_device_ops hci_serdev_client_ops = {
272272
.receive_buf = hci_uart_receive_buf,
273273
.write_wakeup = hci_uart_write_wakeup,
274274
};

0 commit comments

Comments
 (0)