hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/video/fbdev/sis/sis_main.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * SiS 300/540/630[S]/730[S],
34 * SiS 315[E|PRO]/550/[M]65x/[M]66x[F|M|G]X/[M]74x[GX]/330/[M]76x[GX],
....@@ -5,20 +6,6 @@
56 * frame buffer driver for Linux kernels >= 2.4.14 and >=2.6.3
67 *
78 * Copyright (C) 2001-2005 Thomas Winischhofer, Vienna, Austria.
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published by
11
- * the Free Software Foundation; either version 2 of the named License,
12
- * or any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU General Public License
20
- * along with this program; if not, write to the Free Software
21
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
229 *
2310 * Author: Thomas Winischhofer <thomas@winischhofer.net>
2411 *
....@@ -30,7 +17,6 @@
3017 *
3118 * Originally based on the VBE 2.0 compliant graphic boards framebuffer driver,
3219 * which is (c) 1998 Gerd Knorr <kraxel@goldbach.in-berlin.de>
33
- *
3420 */
3521
3622 #include <linux/module.h>
....@@ -1753,7 +1739,7 @@
17531739 if(ivideo->warncount++ < 10)
17541740 printk(KERN_INFO
17551741 "sisfb: Deprecated ioctl call received - update your application!\n");
1756
- /* fall through */
1742
+ fallthrough;
17571743 case SISFB_GET_INFO: /* For communication with X driver */
17581744 ivideo->sisfb_infoblock.sisfb_id = SISFB_ID;
17591745 ivideo->sisfb_infoblock.sisfb_version = VER_MAJOR;
....@@ -1807,7 +1793,7 @@
18071793 if(ivideo->warncount++ < 10)
18081794 printk(KERN_INFO
18091795 "sisfb: Deprecated ioctl call received - update your application!\n");
1810
- /* fall through */
1796
+ fallthrough;
18111797 case SISFB_GET_VBRSTATUS:
18121798 if(sisfb_CheckVBRetrace(ivideo))
18131799 return put_user((u32)1, argp);
....@@ -1818,7 +1804,7 @@
18181804 if(ivideo->warncount++ < 10)
18191805 printk(KERN_INFO
18201806 "sisfb: Deprecated ioctl call received - update your application!\n");
1821
- /* fall through */
1807
+ fallthrough;
18221808 case SISFB_GET_AUTOMAXIMIZE:
18231809 if(ivideo->sisfb_max)
18241810 return put_user((u32)1, argp);
....@@ -1829,7 +1815,7 @@
18291815 if(ivideo->warncount++ < 10)
18301816 printk(KERN_INFO
18311817 "sisfb: Deprecated ioctl call received - update your application!\n");
1832
- /* fall through */
1818
+ fallthrough;
18331819 case SISFB_SET_AUTOMAXIMIZE:
18341820 if(get_user(gpu32, argp))
18351821 return -EFAULT;
....@@ -1920,7 +1906,7 @@
19201906
19211907 /* ---------------- fb_ops structures ----------------- */
19221908
1923
-static struct fb_ops sisfb_ops = {
1909
+static const struct fb_ops sisfb_ops = {
19241910 .owner = THIS_MODULE,
19251911 .fb_open = sisfb_open,
19261912 .fb_release = sisfb_release,