staging/fbtft: Initialize fb_op struct as static const
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 28 Aug 2023 13:14:23 +0000 (15:14 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 5 Sep 2023 12:14:03 +0000 (14:14 +0200)
commitb1adff68e384eed58c2fee7f6316aa84274caad4
treee9e9b4668927043d61acd46ffde19241dd24db80
parenta564708ec491844574481f880bee48cb6a00a55c
staging/fbtft: Initialize fb_op struct as static const

Replace dynamic allocation of the fb_ops instance with static
allocation. Initialize the fields at module-load time. The owner
field changes to THIS_MODULE, as in all other fbdev drivers.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230828132131.29295-8-tzimmermann@suse.de
drivers/staging/fbtft/fbtft-core.c