staging/sm750fb: Declare fb_ops as constant
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 27 Nov 2023 13:15:54 +0000 (14:15 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 29 Nov 2023 11:20:40 +0000 (12:20 +0100)
commitf7c8a046577e09d8f88213c985d102604e73ed4c
treec6b91c0b23815d89ee6a30c5cf7239862855e0c4
parente0f05e643eb1ff9588d38c46ad12ff74efb09959
staging/sm750fb: Declare fb_ops as constant

Split up lynxfb_ops and declare each as constant. The fb_ops
instance used to be modified while initializing the driver. It is
now constant and the driver picks the correct instance, depending
on the settings for acceleration and cursor support.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: Teddy Wang <teddy.wang@siliconmotion.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-staging@lists.linux.dev
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231127131655.4020-26-tzimmermann@suse.de
drivers/staging/sm750fb/sm750.c