diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-29 12:40:21 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-29 12:28:03 +0100 |
commit | fe53159fe3e0639a75ffbe320b9909e0055c743f (patch) | |
tree | 450903965802c7c2becc4f7c5c97396f4fb9b922 /drivers/nfc/nfcmrvl/uart.c | |
parent | a751449f8b477e0e1d97f778ed97ae9f6576b690 (diff) | |
download | linux-fe53159fe3e0639a75ffbe320b9909e0055c743f.tar.gz linux-fe53159fe3e0639a75ffbe320b9909e0055c743f.tar.bz2 linux-fe53159fe3e0639a75ffbe320b9909e0055c743f.zip |
nfc: mrvl: constify several pointers
Several functions do not modify pointed data so arguments and local
variables can be 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/nfcmrvl/uart.c')
-rw-r--r-- | drivers/nfc/nfcmrvl/uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/nfcmrvl/uart.c b/drivers/nfc/nfcmrvl/uart.c index 50d86c90b9dd..63ac434675c8 100644 --- a/drivers/nfc/nfcmrvl/uart.c +++ b/drivers/nfc/nfcmrvl/uart.c @@ -98,8 +98,8 @@ static int nfcmrvl_uart_parse_dt(struct device_node *node, static int nfcmrvl_nci_uart_open(struct nci_uart *nu) { struct nfcmrvl_private *priv; - struct nfcmrvl_platform_data *pdata = NULL; struct nfcmrvl_platform_data config; + const struct nfcmrvl_platform_data *pdata = NULL; struct device *dev = nu->tty->dev; /* |