nfc: mei_phy: constify buffer passed to mei_nfc_send()
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Thu, 29 Jul 2021 10:40:12 +0000 (12:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jul 2021 11:28:02 +0000 (12:28 +0100)
The buffer passed to mei_nfc_send() 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>
drivers/nfc/mei_phy.c

index 41146bb99474c0a0ea6ca6a6a639104269d96892..f9cca885beec6bc14f04fbe24ba03350ead385ac 100644 (file)
@@ -202,7 +202,7 @@ err:
        return r;
 }
 
-static int mei_nfc_send(struct nfc_mei_phy *phy, u8 *buf, size_t length)
+static int mei_nfc_send(struct nfc_mei_phy *phy, const u8 *buf, size_t length)
 {
        struct mei_nfc_hdr *hdr;
        u8 *mei_buf;