mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 10:01:39 -05:00
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>
This commit is contained in:
committed by
David S. Miller
parent
dd8987a394
commit
894a6e1586
@@ -202,7 +202,7 @@ static int mei_nfc_connect(struct nfc_mei_phy *phy)
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user