summaryrefslogtreecommitdiff
path: root/drivers/nfc/pn533
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2021-10-07 01:47:37 +0300
committerDavid S. Miller <davem@davemloft.net>2021-10-07 15:35:10 +0300
commitbe5f60d8b6f9611ff3a687de5d47d3ed9fb2cfb0 (patch)
treed1a9e7b8cd1db20710217e0e5991316024980ac1 /drivers/nfc/pn533
parent6d99f85e342d2aa346c36e5fe52041a9c56a6c30 (diff)
downloadlinux-be5f60d8b6f9611ff3a687de5d47d3ed9fb2cfb0.tar.xz
nfc: pn533: Constify serdev_device_ops
The only usage of pn532_serdev_ops is to pass its address to serdev_device_set_client_ops(), which takes a pointer to const serdev_device_ops as argument. 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>
Diffstat (limited to 'drivers/nfc/pn533')
-rw-r--r--drivers/nfc/pn533/uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/pn533/uart.c b/drivers/nfc/pn533/uart.c
index 7bdaf8263070..77bb073f031a 100644
--- a/drivers/nfc/pn533/uart.c
+++ b/drivers/nfc/pn533/uart.c
@@ -224,7 +224,7 @@ static int pn532_receive_buf(struct serdev_device *serdev,
return i;
}
-static struct serdev_device_ops pn532_serdev_ops = {
+static const struct serdev_device_ops pn532_serdev_ops = {
.receive_buf = pn532_receive_buf,
.write_wakeup = serdev_device_write_wakeup,
};