usb: sisusb_con, cleanup configs
There are two macros defined: 1) ifdef CONFIG_COMPAT => define SISUSB_NEW_CONFIG_COMPAT 2) ifdef CONFIG_USB_SISUSBVGA_CON => define INCL_SISUSB_CON Remove the latter and make use only of the former. This removes one layer of obfuscation. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

zatwierdzone przez
Greg Kroah-Hartman

rodzic
3af5d01c29
commit
022e468e13
@@ -38,17 +38,8 @@
|
||||
#ifndef _SISUSB_H_
|
||||
#define _SISUSB_H_
|
||||
|
||||
#ifdef CONFIG_COMPAT
|
||||
#define SISUSB_NEW_CONFIG_COMPAT
|
||||
#endif
|
||||
|
||||
#include <linux/mutex.h>
|
||||
|
||||
/* For older kernels, support for text consoles is by default
|
||||
* off. To enable text console support, change the following:
|
||||
*/
|
||||
/* #define CONFIG_USB_SISUSBVGA_CON */
|
||||
|
||||
/* Version Information */
|
||||
|
||||
#define SISUSB_VERSION 0
|
||||
@@ -57,10 +48,6 @@
|
||||
|
||||
/* Include console and mode switching code? */
|
||||
|
||||
#ifdef CONFIG_USB_SISUSBVGA_CON
|
||||
#define INCL_SISUSB_CON 1
|
||||
#endif
|
||||
|
||||
#include <linux/console.h>
|
||||
#include <linux/vt_kern.h>
|
||||
#include "sisusb_struct.h"
|
||||
@@ -139,7 +126,7 @@ struct sisusb_usb_data {
|
||||
unsigned char gfxinit; /* graphics core initialized? */
|
||||
unsigned short chipid, chipvendor;
|
||||
unsigned short chiprevision;
|
||||
#ifdef INCL_SISUSB_CON
|
||||
#ifdef CONFIG_USB_SISUSBVGA_CON
|
||||
struct SiS_Private *SiS_Pr;
|
||||
unsigned long scrbuf;
|
||||
unsigned int scrbuf_size;
|
||||
|
Reference in New Issue
Block a user