[PATCH 7/9] state: backend_raw: rename backend_raw_write_one() -> backend_raw_save_one()
Marc Kleine-Budde
mkl at pengutronix.de
Tue May 26 04:37:51 PDT 2015
Use a consistent naming scheme: backend_raw_save_one() is called from
backend_raw_save().
Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
common/state.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/common/state.c b/common/state.c
index 749c8e906851..8f6d14c98255 100644
--- a/common/state.c
+++ b/common/state.c
@@ -1136,7 +1136,7 @@ static int state_backend_raw_load(struct state_backend *backend,
return ret;
}
-static int backend_raw_write_one(struct state_backend_raw *backend_raw,
+static int backend_raw_save_one(struct state_backend_raw *backend_raw,
struct state *state, int fd, int num, void *buf, size_t size)
{
int ret;
@@ -1195,15 +1195,15 @@ static int state_backend_raw_save(struct state_backend *backend,
if (i == backend_raw->num_copy_read)
continue;
- ret = backend_raw_write_one(backend_raw, state, fd,
- i, buf, backend_raw->size_full);
+ ret = backend_raw_save_one(backend_raw, state, fd,
+ i, buf, backend_raw->size_full);
if (ret)
goto out_close;
}
- ret = backend_raw_write_one(backend_raw, state, fd,
- backend_raw->num_copy_read, buf, backend_raw->size_full);
+ ret = backend_raw_save_one(backend_raw, state, fd,
+ backend_raw->num_copy_read, buf, backend_raw->size_full);
if (ret)
goto out_close;
--
2.1.4
More information about the barebox
mailing list