aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nfc/pn533/usb.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2021-10-07 00:47:38 +0200
committerDavid S. Miller <davem@davemloft.net>2021-10-07 13:35:10 +0100
commitbc642817b6d9e058e058a0bba4bb35df19eb2911 (patch)
treea90b53d6d52d07a3f0eba78ff370007e5c472b75 /drivers/nfc/pn533/usb.c
parentnfc: pn533: Constify serdev_device_ops (diff)
downloadlinux-dev-bc642817b6d9e058e058a0bba4bb35df19eb2911.tar.xz
linux-dev-bc642817b6d9e058e058a0bba4bb35df19eb2911.zip
nfc: pn533: Constify pn533_phy_ops
Neither the driver or the core modifies the pn533_phy_ops struct, so make them const to allow the compiler to put the static structs 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 '')
-rw-r--r--drivers/nfc/pn533/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/pn533/usb.c b/drivers/nfc/pn533/usb.c
index bd7f7478d189..6f71ac72012e 100644
--- a/drivers/nfc/pn533/usb.c
+++ b/drivers/nfc/pn533/usb.c
@@ -429,7 +429,7 @@ static void pn533_send_complete(struct urb *urb)
}
}
-static struct pn533_phy_ops usb_phy_ops = {
+static const struct pn533_phy_ops usb_phy_ops = {
.send_frame = pn533_usb_send_frame,
.send_ack = pn533_usb_send_ack,
.abort_cmd = pn533_usb_abort_cmd,