nfc: s3fwrn5: constify nci_ops
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Sat, 24 Jul 2021 21:47:34 +0000 (23:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jul 2021 08:21:20 +0000 (09:21 +0100)
commitd08ba0fdeaba03c70483d74de4401e67bbd9f020
tree756d213dd53e438c957603e05cfd159c98cd19f0
parentb9c28286d8f1822a10f702fcefe0b8a1db4e6917
nfc: s3fwrn5: constify nci_ops

s3fwrn5 driver modifies static struct nci_ops only to set prop_ops.
Since prop_ops is build time constant with known size, it can be made
const.  This allows to removeo the function setting the prop_ops -
s3fwrn5_nci_get_prop_ops().

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/s3fwrn5/core.c
drivers/nfc/s3fwrn5/nci.c
drivers/nfc/s3fwrn5/nci.h