summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/commonlib/include/commonlib/region.h2
-rw-r--r--src/lib/cbfs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/commonlib/include/commonlib/region.h b/src/commonlib/include/commonlib/region.h
index 5d73d9e199..25efcc8724 100644
--- a/src/commonlib/include/commonlib/region.h
+++ b/src/commonlib/include/commonlib/region.h
@@ -163,7 +163,7 @@ static inline int rdev_chain_full(struct region_device *child,
*
* You must ensure the buffer is large enough to hold the full region_device.
*/
-static inline ssize_t rdev_readat_full(const struct region_device *rd, void *b)
+static inline ssize_t rdev_read_full(const struct region_device *rd, void *b)
{
return rdev_readat(rd, b, 0, region_device_sz(rd));
}
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c
index 600d2591c8..b4b6eb1324 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -316,7 +316,7 @@ static enum cb_err cbfs_preload_thread_entry(void *arg)
{
struct cbfs_preload_context *context = arg;
- if (rdev_readat_full(&context->rdev, context->buffer) < 0) {
+ if (rdev_read_full(&context->rdev, context->buffer) < 0) {
ERROR("%s(name='%s') readat failed\n", __func__, context->name);
return CB_ERR;
}