[PATCH 19/45] tty: vt: make init parameter of consw::con_init() a bool
Geert Uytterhoeven
geert at linux-m68k.org
Thu Jan 18 08:56:35 UTC 2024
Hi Jiri,
On Thu, Jan 18, 2024 at 9:03 AM Jiri Slaby (SUSE) <jirislaby at kernel.org> wrote:
> The 'init' parameter of consw::con_init() is true for the first call of
> the hook on a particular console. So make the parameter a bool.
>
> And document the hook.
>
> Signed-off-by: Jiri Slaby (SUSE) <jirislaby at kernel.org>
Thanks for your patch!
> --- a/drivers/video/console/vgacon.c
> +++ b/drivers/video/console/vgacon.c
> @@ -367,7 +367,7 @@ static const char *vgacon_startup(void)
> return display_desc;
> }
>
> -static void vgacon_init(struct vc_data *c, int init)
> +static void vgacon_init(struct vc_data *c, bool init)
> {
> struct uni_pagedict *p;
>
Below, there is one more line to update:
- /* set dimensions manually if init != 0 since vc_resize()
will fail */
+ /* set dimensions manually if init is true since
vc_resize() will fail */
With the above fixed:
Reviewed-by: Geert Uytterhoeven <geert+renesas at glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
More information about the dri-devel
mailing list