Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 640e32c9 authored by Colin Ian King's avatar Colin Ian King Committed by Marcel Holtmann
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 4b943fae
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,
};