mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
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>
This commit is contained in:
parent
6d99f85e34
commit
be5f60d8b6
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user