region: Rename rdev_readat_full to rdev_read_full
The 'at' part of the name refers to starting to read from a specific offset, so it doesn't make sense for the 'full' version of the function. Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I60d595f0cbd161df171eaa4a76c7a00b6377e2b0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59820 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
29c7622d08
commit
f364eb9e1a
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue