]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: pn533: Constify serdev_device_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 6 Oct 2021 22:47:37 +0000 (00:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Oct 2021 12:35:10 +0000 (13:35 +0100)
commite2750319b13eb72ab41f14b4a405e2aa8604d34d
treed1a9e7b8cd1db20710217e0e5991316024980ac1
parent796004879751cdf41c1808d9447de17efb405c37
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>
drivers/nfc/pn533/uart.c