mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 19:56:52 +07:00
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: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d6fc1923d6
commit
715d08712e
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user