| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/drivers/video/vt8500lcdfb.c |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2010 Alexey Charkov <alchark@gmail.com> |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Based on skeletonfb.c and pxafb.c |
|---|
| 7 | | - * |
|---|
| 8 | | - * This software is licensed under the terms of the GNU General Public |
|---|
| 9 | | - * License version 2, as published by the Free Software Foundation, and |
|---|
| 10 | | - * may be copied, distributed, and modified under those terms. |
|---|
| 11 | | - * |
|---|
| 12 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 13 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 14 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 15 | | - * GNU General Public License for more details. |
|---|
| 16 | 8 | */ |
|---|
| 17 | 9 | |
|---|
| 18 | 10 | #include <linux/delay.h> |
|---|
| .. | .. |
|---|
| 238 | 230 | info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR) |
|---|
| 239 | 231 | for (i = 0; i < 256; i++) |
|---|
| 240 | 232 | vt8500lcd_setcolreg(i, 0, 0, 0, 0, info); |
|---|
| 233 | + fallthrough; |
|---|
| 241 | 234 | case FB_BLANK_UNBLANK: |
|---|
| 242 | 235 | if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR || |
|---|
| 243 | 236 | info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR) |
|---|
| .. | .. |
|---|
| 246 | 239 | return 0; |
|---|
| 247 | 240 | } |
|---|
| 248 | 241 | |
|---|
| 249 | | -static struct fb_ops vt8500lcd_ops = { |
|---|
| 242 | +static const struct fb_ops vt8500lcd_ops = { |
|---|
| 250 | 243 | .owner = THIS_MODULE, |
|---|
| 251 | 244 | .fb_set_par = vt8500lcd_set_par, |
|---|
| 252 | 245 | .fb_setcolreg = vt8500lcd_setcolreg, |
|---|