forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 95099d4622f8cb224d94e314c7a8e0df60b13f87
kernel/drivers/video/fbdev/vt8500lcdfb.c
....@@ -1,18 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/drivers/video/vt8500lcdfb.c
34 *
45 * Copyright (C) 2010 Alexey Charkov <alchark@gmail.com>
56 *
67 * 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.
168 */
179
1810 #include <linux/delay.h>
....@@ -238,6 +230,7 @@
238230 info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR)
239231 for (i = 0; i < 256; i++)
240232 vt8500lcd_setcolreg(i, 0, 0, 0, 0, info);
233
+ fallthrough;
241234 case FB_BLANK_UNBLANK:
242235 if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR ||
243236 info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR)
....@@ -246,7 +239,7 @@
246239 return 0;
247240 }
248241
249
-static struct fb_ops vt8500lcd_ops = {
242
+static const struct fb_ops vt8500lcd_ops = {
250243 .owner = THIS_MODULE,
251244 .fb_set_par = vt8500lcd_set_par,
252245 .fb_setcolreg = vt8500lcd_setcolreg,