summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2021-01-18 21:55:27 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-01-19 11:06:30 +0100
commita61b04dfce85d992786c271999fe1e43596ff3b5 (patch)
tree757e0d4972f2cff9e2e2d1c33e6eb41cc735d8da /drivers
parentb090a12da2d01a93a090dec8fa70db674748b8ca (diff)
downloadbarebox-a61b04dfce85d992786c271999fe1e43596ff3b5.tar.gz
barebox-a61b04dfce85d992786c271999fe1e43596ff3b5.tar.xz
nvmem: make nvmem_device_write/read public
Those functions already export their symbols so make it public available. Compared to the nvmem_device_cell_read/write() APIs these functions are a bit easier to use. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/nvmem/core.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c
index 06e1414769..b9af31f4b5 100644
--- a/drivers/nvmem/core.c
+++ b/drivers/nvmem/core.c
@@ -48,12 +48,6 @@ struct nvmem_cell {
static LIST_HEAD(nvmem_cells);
static LIST_HEAD(nvmem_devs);
-int nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset,
- size_t bytes, void *buf);
-int nvmem_device_write(struct nvmem_device *nvmem, unsigned int offset,
- size_t bytes, const void *buf);
-
-
static ssize_t nvmem_cdev_read(struct cdev *cdev, void *buf, size_t count,
loff_t offset, unsigned long flags)
{