forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/usb/misc/sisusbvga/sisusb.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
1
+/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
22 /*
33 * sisusb - usb kernel driver for Net2280/SiS315 based USB2VGA dongles
44 *
....@@ -38,16 +38,7 @@
3838 #ifndef _SISUSB_H_
3939 #define _SISUSB_H_
4040
41
-#ifdef CONFIG_COMPAT
42
-#define SISUSB_NEW_CONFIG_COMPAT
43
-#endif
44
-
4541 #include <linux/mutex.h>
46
-
47
-/* For older kernels, support for text consoles is by default
48
- * off. To enable text console support, change the following:
49
- */
50
-/* #define CONFIG_USB_SISUSBVGA_CON */
5142
5243 /* Version Information */
5344
....@@ -56,10 +47,6 @@
5647 #define SISUSB_PATCHLEVEL 8
5748
5849 /* Include console and mode switching code? */
59
-
60
-#ifdef CONFIG_USB_SISUSBVGA_CON
61
-#define INCL_SISUSB_CON 1
62
-#endif
6350
6451 #include <linux/console.h>
6552 #include <linux/vt_kern.h>
....@@ -139,7 +126,7 @@
139126 unsigned char gfxinit; /* graphics core initialized? */
140127 unsigned short chipid, chipvendor;
141128 unsigned short chiprevision;
142
-#ifdef INCL_SISUSB_CON
129
+#ifdef CONFIG_USB_SISUSBVGA_CON
143130 struct SiS_Private *SiS_Pr;
144131 unsigned long scrbuf;
145132 unsigned int scrbuf_size;