Thread (3 messages) 3 messages, 2 authors, 2021-06-21
STALE1863d

[PATCH master 2/2] nvmem: fix mismatch between extern and inline stub prototypes

From: Ahmad Fatoum <a.fatoum@pengutronix.de>
Date: 2021-06-19 03:33:38
Subsystem: nvmem framework, the rest · Maintainers: Srinivas Kandagatla, Linus Torvalds

Building with nvmem cell support disabled shows a mismatch in the stub
prototype. Fix it up.

Signed-off-by: Ahmad Fatoum <a.fatoum@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help