Commit 715d0871 authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by David S. Miller
Browse files

net: ethernet: qualcomm: constify qca_serdev_ops



The only usage of qca_serdev_ops is to pass its address to
serdev_device_set_client_ops() which takes a const pointer. Make it
const to allow the compiler to put it in read-only memory.

Signed-off-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d6fc1923
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ static void qca_tty_wakeup(struct serdev_device *serdev)
	schedule_work(&qca->tx_work);
}

static struct serdev_device_ops qca_serdev_ops = {
static const struct serdev_device_ops qca_serdev_ops = {
	.receive_buf = qca_tty_receive,
	.write_wakeup = qca_tty_wakeup,
};