From 664d41748d4a729c4cc9dd9881a03c789d129d7a Mon Sep 17 00:00:00 2001 From: bjsylvia Date: Fri, 27 Dec 2024 12:05:07 +0800 Subject: [PATCH] chore: fix typos in drivers (#7517) Signed-off-by: bjsylvia --- src/drivers/display/renesas_glcdc/lv_renesas_glcdc.h | 4 ++-- src/drivers/wayland/lv_wayland.c | 4 ++-- src/drivers/wayland/lv_wayland_smm.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/drivers/display/renesas_glcdc/lv_renesas_glcdc.h b/src/drivers/display/renesas_glcdc/lv_renesas_glcdc.h index 0558614e5..bb8abefc5 100644 --- a/src/drivers/display/renesas_glcdc/lv_renesas_glcdc.h +++ b/src/drivers/display/renesas_glcdc/lv_renesas_glcdc.h @@ -30,13 +30,13 @@ extern "C" { **********************/ /** - * Create a display using Renesas' GLCDC peripherial in DIRECT render mode + * Create a display using Renesas' GLCDC peripheral in DIRECT render mode * @return pointer to the created display */ lv_display_t * lv_renesas_glcdc_direct_create(void); /** - * Create a display using Renesas' GLCDC peripherial in PARTIAL render mode + * Create a display using Renesas' GLCDC peripheral in PARTIAL render mode * @param buf1 first buffer * @param buf2 second buffer (can be `NULL`) * @param buf_size buffer size in byte diff --git a/src/drivers/wayland/lv_wayland.c b/src/drivers/wayland/lv_wayland.c index 43aac245f..6e741ee03 100644 --- a/src/drivers/wayland/lv_wayland.c +++ b/src/drivers/wayland/lv_wayland.c @@ -245,7 +245,7 @@ struct window { }; /********************************* - * STATIC VARIABLES and FUNTIONS + * STATIC VARIABLES and FUNCTIONS *********************************/ static struct application application; @@ -2569,7 +2569,7 @@ lv_display_t * lv_wayland_window_create(uint32_t hor_res, uint32_t ver_res, char #if LV_WAYLAND_WINDOW_DECORATIONS - /* Decorations are enabled, caculate the body size */ + /* Decorations are enabled, calculate the body size */ if(!application.opt_disable_decorations) { window_width = hor_res + (2 * BORDER_SIZE); window_height = ver_res + (TITLE_BAR_HEIGHT + (2 * BORDER_SIZE)); diff --git a/src/drivers/wayland/lv_wayland_smm.c b/src/drivers/wayland/lv_wayland_smm.c index 7cb982a0f..81e882794 100644 --- a/src/drivers/wayland/lv_wayland_smm.c +++ b/src/drivers/wayland/lv_wayland_smm.c @@ -175,7 +175,7 @@ smm_group_t * smm_create(void) { struct smm_group * grp; - /* Allocate and intialize a new buffer group */ + /* Allocate and initialize a new buffer group */ grp = malloc(sizeof(struct smm_group)); if(grp != NULL) { grp->size = smm_instance.page_sz; @@ -644,7 +644,7 @@ struct smm_buffer * alloc_buffer(struct smm_buffer * last, size_t offset) offset }; - /* Allocate and intialize a new buffer (including linking in to pool) */ + /* Allocate and initialize a new buffer (including linking in to pool) */ buf = malloc(sizeof(struct smm_buffer)); if(buf != NULL) { memcpy(&buf->props, &initial_props, sizeof(struct smm_buffer_properties));