From a5c5db37eecc056792be72f6ef71d4ea6f1a7207 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 28 Oct 2015 12:24:25 +0100 Subject: [PATCH] cbgfx: Fix spelling of calculate_position() Change-Id: Ib0dc14b197091450596ad01a924539b0e69acd68 Signed-off-by: Jason A. Donenfeld Reviewed-on: http://review.coreboot.org/12216 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin Roth --- payloads/libpayload/drivers/video/graphics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/payloads/libpayload/drivers/video/graphics.c b/payloads/libpayload/drivers/video/graphics.c index e7a4957c3b..c8d0d4da4d 100644 --- a/payloads/libpayload/drivers/video/graphics.c +++ b/payloads/libpayload/drivers/video/graphics.c @@ -488,7 +488,7 @@ static int calculate_dimension(const struct vector *dim_org, return CBGFX_SUCCESS; } -static int caclcuate_position(const struct vector *dim, +static int calculate_position(const struct vector *dim, const struct scale *pos_rel, uint8_t pivot, struct vector *top_left) { @@ -572,7 +572,7 @@ int draw_bitmap(const void *bitmap, size_t size, scale.y.d = dim_org.height; /* Calculate coordinate */ - rv = caclcuate_position(&dim, pos_rel, pivot, &top_left); + rv = calculate_position(&dim, pos_rel, pivot, &top_left); if (rv) return rv;