# \[PATCH 0/3\] Refactor reused code for updating fb\_info

- From: Matej Dujava \<hidden\>
- Date: 2020-04-30 20:19:42 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2020/04/5948980
- Thread: https://ratatoskr.run/linux-fbdev/2020/04/5948980/t.md

```text
This patch set will unify reused switch statement updating fb_info by
creating inline functions.

Tested only by compilation.

Matej Dujava (3):
  staging: sm750fb: add missing case while setting FB_VISUAL
  staging: sm750fb: add common function to set color offsets and visual
    mode
  staging: sm750fb: print error message with actual value

 drivers/staging/sm750fb/sm750.c | 150 +++++++++++++++-----------------
 1 file changed, 68 insertions(+), 82 deletions(-)

-- 
2.26.2
```
