# Re: \[PATCH 25/32\] staging/sm750fb: Declare fb\_ops as constant

- From: Javier Martinez Canillas \<javierm@redhat.com\>
- Date: 2023-11-16 11:44:49 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2023/11/9242222
- Thread: https://ratatoskr.run/linux-fbdev/2023/11/9242115/t.md

```text
Thomas Zimmermann [ref] writes:

> 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: <redacted>
> ---
>  drivers/staging/sm750fb/sm750.c | 59 +++++++++++++++++++++++++++------
>  1 file changed, 49 insertions(+), 10 deletions(-)
>

Same than patch patch #6, the change is less trivial and would be great if
someone with the hardware can test/review. But the patch looks good to me:

Acked-by: Javier Martinez Canillas <javierm@redhat.com>

-- 
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat

```
