mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue