Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nfc: mei_phy: constify buffer passed to mei_nfc_send()

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>

authored by

Krzysztof Kozlowski and committed by
David S. Miller
894a6e15 dd8987a3

+1 -1
+1 -1
drivers/nfc/mei_phy.c
··· 202 202 return r; 203 203 } 204 204 205 - static int mei_nfc_send(struct nfc_mei_phy *phy, u8 *buf, size_t length) 205 + static int mei_nfc_send(struct nfc_mei_phy *phy, const u8 *buf, size_t length) 206 206 { 207 207 struct mei_nfc_hdr *hdr; 208 208 u8 *mei_buf;