diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-10-07 00:47:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-07 13:35:10 +0100 |
commit | bc642817b6d9e058e058a0bba4bb35df19eb2911 (patch) | |
tree | a90b53d6d52d07a3f0eba78ff370007e5c472b75 /drivers/nfc/pn533/uart.c | |
parent | be5f60d8b6f9611ff3a687de5d47d3ed9fb2cfb0 (diff) | |
download | lwn-bc642817b6d9e058e058a0bba4bb35df19eb2911.tar.gz lwn-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 'drivers/nfc/pn533/uart.c')
-rw-r--r-- | drivers/nfc/pn533/uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/pn533/uart.c b/drivers/nfc/pn533/uart.c index 77bb073f031a..2caf997f9bc9 100644 --- a/drivers/nfc/pn533/uart.c +++ b/drivers/nfc/pn533/uart.c @@ -123,7 +123,7 @@ static int pn532_dev_down(struct pn533 *dev) return 0; } -static struct pn533_phy_ops uart_phy_ops = { +static const struct pn533_phy_ops uart_phy_ops = { .send_frame = pn532_uart_send_frame, .send_ack = pn532_uart_send_ack, .abort_cmd = pn532_uart_abort_cmd, |