video: Drop extra parameters from vidconsole_show_cursor()
Now that both console drivers use the CLI index, we don't need the extra parameters for this. Drop them. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -214,8 +214,7 @@ int scene_textline_render_deps(struct scene *scn,
|
||||
if (ret)
|
||||
return log_msg_ret("sav", ret);
|
||||
|
||||
vidconsole_show_cursor(cons, txt->obj.bbox.x0,
|
||||
txt->obj.bbox.y0, scn->cls.num);
|
||||
vidconsole_show_cursor(cons);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -712,7 +712,7 @@ int vidconsole_entry_restore(struct udevice *dev, struct abuf *buf)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CURSOR
|
||||
int vidconsole_show_cursor(struct udevice *dev, uint x, uint y, uint index)
|
||||
int vidconsole_show_cursor(struct udevice *dev)
|
||||
{
|
||||
struct vidconsole_priv *priv = dev_get_uclass_priv(dev);
|
||||
struct vidconsole_ops *ops = vidconsole_get_ops(dev);
|
||||
@@ -747,7 +747,7 @@ int vidconsole_show_cursor(struct udevice *dev, uint x, uint y, uint index)
|
||||
curs->height);
|
||||
}
|
||||
|
||||
priv->curs.visible = true;
|
||||
curs->visible = true;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -451,17 +451,12 @@ int vidconsole_entry_restore(struct udevice *dev, struct abuf *buf);
|
||||
/**
|
||||
* vidconsole_show_cursor() - Show the cursor
|
||||
*
|
||||
* Shows a cursor at the specified position. The position is passed in, but for
|
||||
* the truetype console it is not actually used, since it tracks where the
|
||||
* cursor must go.
|
||||
* Shows a cursor at the current position.
|
||||
*
|
||||
* @dev: Console device to use
|
||||
* @x: X position in pixels
|
||||
* @y: Y position in pixels
|
||||
* @index: Character position (0 = at start)
|
||||
* Return: 0 if OK, -ve on error
|
||||
*/
|
||||
int vidconsole_show_cursor(struct udevice *dev, uint x, uint y, uint index);
|
||||
int vidconsole_show_cursor(struct udevice *dev);
|
||||
|
||||
/**
|
||||
* vidconsole_readline_start() - Enable cursor for all video consoles
|
||||
@@ -481,8 +476,7 @@ void vidconsole_readline_start(bool indent);
|
||||
*/
|
||||
void vidconsole_readline_end(void);
|
||||
#else
|
||||
static inline int vidconsole_show_cursor(struct udevice *dev, uint x, uint y,
|
||||
uint index)
|
||||
static inline int vidconsole_show_cursor(struct udevice *dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user