Re: [PATCH] named struct initialiser updates

Geert Uytterhoeven (geert@linux-m68k.org)
Fri, 29 Nov 2002 10:45:24 +0100 (MET)


On Tue, 26 Nov 2002, Linux Kernel Mailing List wrote:
> ChangeSet 1.842.43.47, 2002/11/25 18:40:22-08:00, davej@codemonkey.org.uk
>
> [PATCH] named struct initialiser updates

> diff -Nru a/drivers/video/fbcon.c b/drivers/video/fbcon.c
> --- a/drivers/video/fbcon.c Mon Nov 25 20:14:39 2002
> +++ b/drivers/video/fbcon.c Mon Nov 25 20:14:39 2002
> @@ -230,8 +230,9 @@
>
> static void cursor_timer_handler(unsigned long dev_addr);
>
> -static struct timer_list cursor_timer =
> - TIMER_INITIALIZER(cursor_timer_handler, 0, 0);
> +static struct timer_list cursor_timer = {
> + function: cursor_timer_handler
> +};
>
> static void cursor_timer_handler(unsigned long dev_addr)
> {

Doesn't this part reverse the timer initializer fix?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/