diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-06-19 05:32:12 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-21 07:02:07 +0200 |
commit | 155a2461be50d9cb2c3f49aaa84107864f9bde93 (patch) | |
tree | 956decb76d5d71e977ec55f7824f57c391bd6143 | |
parent | 7478b14595a8467ade8971e2bbd94ffdcb3f3c78 (diff) | |
download | barebox-155a2461be50d9cb2c3f49aaa84107864f9bde93.tar.gz barebox-155a2461be50d9cb2c3f49aaa84107864f9bde93.tar.xz |
nvmem: fix mismatch between extern and inline stub prototypes
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>
Link: https://lore.barebox.org/20210619033212.3391-2-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | include/linux/nvmem-consumer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nvmem-consumer.h b/include/linux/nvmem-consumer.h index 5d3d72837b..5f44cf00cd 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; } |