aboutsummaryrefslogtreecommitdiff
path: root/drivers/nfc/nfcsim.c
diff options
context:
space:
mode:
authorGravatar Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> 2021-07-24 23:49:28 +0200
committerGravatar David S. Miller <davem@davemloft.net> 2021-07-25 09:21:21 +0100
commit7186aac9c22de855220ebc54df7af399647bd1fc (patch)
tree119f428bbe33677716c68d6f3aed906195d7872a /drivers/nfc/nfcsim.c
parentnfc: constify nfc_llc_ops (diff)
downloadlinux-7186aac9c22de855220ebc54df7af399647bd1fc.tar.gz
linux-7186aac9c22de855220ebc54df7af399647bd1fc.tar.bz2
linux-7186aac9c22de855220ebc54df7af399647bd1fc.zip
nfc: constify nfc_digital_ops
Neither the core nor the drivers modify the passed pointer to struct nfc_digital_ops, so make it a pointer to const for correctness and safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nfc/nfcsim.c')
-rw-r--r--drivers/nfc/nfcsim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/nfcsim.c b/drivers/nfc/nfcsim.c
index a9864fcdfba6..143dc49b815b 100644
--- a/drivers/nfc/nfcsim.c
+++ b/drivers/nfc/nfcsim.c
@@ -320,7 +320,7 @@ static int nfcsim_tg_listen(struct nfc_digital_dev *ddev, u16 timeout,
return nfcsim_send(ddev, NULL, timeout, cb, arg);
}
-static struct nfc_digital_ops nfcsim_digital_ops = {
+static const struct nfc_digital_ops nfcsim_digital_ops = {
.in_configure_hw = nfcsim_in_configure_hw,
.in_send_cmd = nfcsim_in_send_cmd,