[PATCH master 2/2] nvmem: fix mismatch between extern and inline stub prototypes
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Jun 18 20:32:12 PDT 2021
Building with nvmem cell support disabled shows a mismatch in the stub
prototype. Fix it up.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
include/linux/nvmem-consumer.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/nvmem-consumer.h b/include/linux/nvmem-consumer.h
index 5d3d72837be0..5f44cf00cdff 100644
--- a/include/linux/nvmem-consumer.h
+++ b/include/linux/nvmem-consumer.h
@@ -74,7 +74,7 @@ static inline void *nvmem_cell_get_and_read(struct device_node *np,
}
static inline int nvmem_cell_write(struct nvmem_cell *cell,
- const char *buf, size_t len)
+ void *buf, size_t len)
{
return -EOPNOTSUPP;
}
--
2.29.2
More information about the barebox
mailing list