OSDN Git Service

nfc: pn533: Constify pn533_phy_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 6 Oct 2021 22:47:38 +0000 (00:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Oct 2021 12:35:10 +0000 (13:35 +0100)
commitbc642817b6d9e058e058a0bba4bb35df19eb2911
treea90b53d6d52d07a3f0eba78ff370007e5c472b75
parentbe5f60d8b6f9611ff3a687de5d47d3ed9fb2cfb0
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>
drivers/nfc/pn533/i2c.c
drivers/nfc/pn533/pn533.c
drivers/nfc/pn533/pn533.h
drivers/nfc/pn533/uart.c
drivers/nfc/pn533/usb.c