@@ -160,8 +160,8 @@ int fill_char_horizontally(uchar *pfont, void **line, struct video_priv *vid_pri
return ret;
}
-int draw_cursor_vertically(void **line, struct video_priv *vid_priv,
- uint height, bool direction)
+int cursor_show(void **line, struct video_priv *vid_priv, uint height,
+ bool direction)
{
int step, line_step, pbytes, ret;
uint value;
@@ -188,6 +188,7 @@ int draw_cursor_vertically(void **line, struct video_priv *vid_priv,
fill_pixel_and_goto_next(&dst, value, pbytes, step);
*line += line_step;
}
+
return ret;
}
@@ -99,8 +99,7 @@ static int __maybe_unused console_set_cursor_visible(struct udevice *dev,
start = vid_priv->fb + y * vid_priv->line_length + x * pbytes;
line = start;
- draw_cursor_vertically(&line, vid_priv, vc_priv->y_charsize,
- NORMAL_DIRECTION);
+ cursor_show(&line, vid_priv, vc_priv->y_charsize, NORMAL_DIRECTION);
return 0;
}
@@ -1032,7 +1032,7 @@ static int truetype_set_cursor_visible(struct udevice *dev, bool visible,
x * VNBYTES(vid_priv->bpix);
/* Use the shared cursor drawing function */
- draw_cursor_vertically(&line, vid_priv, height, NORMAL_DIRECTION);
+ cursor_show(&line, vid_priv, height, NORMAL_DIRECTION);
video_damage(dev->parent, x, y, VIDCONSOLE_CURSOR_WIDTH, height);
@@ -96,7 +96,7 @@ int fill_char_horizontally(uchar *pfont, void **line, struct video_priv *vid_pri
struct video_fontdata *fontdata, bool direction);
/**
- * draw_cursor_vertically() - Draw a simple vertical cursor
+ * cursor_show() - Draw a simple vertical cursor
*
* @line: pointer to framebuffer buffer: upper left cursor corner
* @vid_priv: driver private data
@@ -116,8 +116,8 @@ int fill_char_horizontally(uchar *pfont, void **line, struct video_priv *vid_pri
*
* Return: 0, if success, or else error code.
*/
-int draw_cursor_vertically(void **line, struct video_priv *vid_priv,
- uint height, bool direction);
+int cursor_show(void **line, struct video_priv *vid_priv, uint height,
+ bool direction);
/**
* console probe function.