projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7997689
)
nfc: mrvl: correct nfcmrvl_spi_parse_dt() device_node argument
author
Krzysztof Kozlowski
<krzysztof.kozlowski@canonical.com>
Fri, 30 Jul 2021 14:41:56 +0000
(16:41 +0200)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 30 Jul 2021 15:22:51 +0000
(17:22 +0200)
The device_node in nfcmrvl_spi_parse_dt() cannot be const as it is
passed to OF functions which modify it.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/nfc/nfcmrvl/spi.c
patch
|
blob
|
history
diff --git
a/drivers/nfc/nfcmrvl/spi.c
b/drivers/nfc/nfcmrvl/spi.c
index d64abd0c4df36f8dd2341a35aedd46badef441df..b182ab2e03c0a5c93502ebc2a4353dbdf8f57940 100644
(file)
--- a/
drivers/nfc/nfcmrvl/spi.c
+++ b/
drivers/nfc/nfcmrvl/spi.c
@@
-106,7
+106,7
@@
static const struct nfcmrvl_if_ops spi_ops = {
.nci_update_config = nfcmrvl_spi_nci_update_config,
};
-static int nfcmrvl_spi_parse_dt(
const
struct device_node *node,
+static int nfcmrvl_spi_parse_dt(struct device_node *node,
struct nfcmrvl_platform_data *pdata)
{
int ret;