src/drivers: Fix checkpatch warning: no spaces at the start of a line
This excludes files which are mostly spaces, which I felt should be handled separately. Change-Id: I33043a3090e2fc6e9d2fd81e8a5e46fb6cb0aa35 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20731 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
This commit is contained in:
parent
e5f2d4c44c
commit
b9810a4cd6
|
@ -73,7 +73,7 @@ static struct device_operations aspeed_ast2050_ops = {
|
|||
};
|
||||
|
||||
static const struct pci_driver aspeed_ast2050_driver __pci_driver = {
|
||||
.ops = &aspeed_ast2050_ops,
|
||||
.vendor = PCI_VENDOR_ID_ASPEED,
|
||||
.device = PCI_DEVICE_ID_ASPEED_AST2050_VGA,
|
||||
.ops = &aspeed_ast2050_ops,
|
||||
.vendor = PCI_VENDOR_ID_ASPEED,
|
||||
.device = PCI_DEVICE_ID_ASPEED_AST2050_VGA,
|
||||
};
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#define FB_MAX 32 /* sufficient for now */
|
||||
|
||||
/* ioctls
|
||||
0x46 is 'F' */
|
||||
* 0x46 is 'F' */
|
||||
#define FBIOGET_VSCREENINFO 0x4600
|
||||
#define FBIOPUT_VSCREENINFO 0x4601
|
||||
#define FBIOGET_FSCREENINFO 0x4602
|
||||
|
@ -271,9 +271,9 @@ struct fb_vblank {
|
|||
|
||||
|
||||
|
||||
/*
|
||||
* Hardware Cursor
|
||||
*/
|
||||
/*
|
||||
* Hardware Cursor
|
||||
*/
|
||||
|
||||
#define FBIOGET_FCURSORINFO 0x4607
|
||||
#define FBIOGET_VCURSORINFO 0x4608
|
||||
|
@ -307,38 +307,38 @@ struct fb_cursorstate {
|
|||
|
||||
|
||||
struct fb_info {
|
||||
char modename[40]; /* default video mode */
|
||||
char modename[40]; /* default video mode */
|
||||
// kdev_t node;
|
||||
int flags;
|
||||
int open; /* Has this been open already ? */
|
||||
struct fb_var_screeninfo var; /* Current var */
|
||||
int flags;
|
||||
int open; /* Has this been open already ? */
|
||||
struct fb_var_screeninfo var; /* Current var */
|
||||
#if 0
|
||||
struct fb_fix_screeninfo fix; /* Current fix */
|
||||
struct fb_fix_screeninfo fix; /* Current fix */
|
||||
#endif
|
||||
struct fb_monspecs monspecs; /* Current Monitor specs */
|
||||
struct fb_cmap cmap; /* Current cmap */
|
||||
struct fb_monspecs monspecs; /* Current Monitor specs */
|
||||
struct fb_cmap cmap; /* Current cmap */
|
||||
// struct fb_ops *fbops;
|
||||
char *screen_base; /* Virtual address */
|
||||
struct display *disp; /* initial display variable */
|
||||
char *screen_base; /* Virtual address */
|
||||
struct display *disp; /* initial display variable */
|
||||
// struct vc_data *display_fg; /* Console visible on this display */
|
||||
char fontname[40]; /* default font name */
|
||||
char fontname[40]; /* default font name */
|
||||
#if 0
|
||||
devfs_handle_t devfs_handle; /* Devfs handle for new name */
|
||||
devfs_handle_t devfs_lhandle; /* Devfs handle for compat. symlink */
|
||||
int (*changevar)(int); /* tell console var has changed */
|
||||
int (*switch_con)(int, struct fb_info*);
|
||||
devfs_handle_t devfs_handle; /* Devfs handle for new name */
|
||||
devfs_handle_t devfs_lhandle; /* Devfs handle for compat. symlink */
|
||||
int (*changevar)(int); /* tell console var has changed */
|
||||
int (*switch_con)(int, struct fb_info*);
|
||||
/* tell fb to switch consoles */
|
||||
int (*updatevar)(int, struct fb_info*);
|
||||
int (*updatevar)(int, struct fb_info*);
|
||||
/* tell fb to update the vars */
|
||||
void (*blank)(int, struct fb_info*); /* tell fb to (un)blank the screen */
|
||||
void (*blank)(int, struct fb_info*); /* tell fb to (un)blank the screen */
|
||||
/* arg = 0: unblank */
|
||||
/* arg > 0: VESA level (arg-1) */
|
||||
#endif
|
||||
void *pseudo_palette; /* Fake palette of 16 colors and
|
||||
void *pseudo_palette; /* Fake palette of 16 colors and
|
||||
the cursor's color for non
|
||||
palette mode */
|
||||
/* From here on everything is device dependent */
|
||||
void *par;
|
||||
/* From here on everything is device dependent */
|
||||
void *par;
|
||||
};
|
||||
|
||||
#endif /* _LINUX_FB_H */
|
||||
|
|
|
@ -858,8 +858,8 @@
|
|||
#define GL_CHIP_ID 0x474c /* RAGE XL, PQFP, PCI66 */
|
||||
|
||||
#define IS_XL(id) ((id)==GR_CHIP_ID || (id)==GS_CHIP_ID || \
|
||||
(id)==GM_CHIP_ID || (id)==GN_CHIP_ID || \
|
||||
(id)==GO_CHIP_ID || (id)==GL_CHIP_ID)
|
||||
(id)==GM_CHIP_ID || (id)==GN_CHIP_ID || \
|
||||
(id)==GO_CHIP_ID || (id)==GL_CHIP_ID)
|
||||
|
||||
#define GT_CHIP_ID 0x4754 /* RAGE (GT) */
|
||||
#define GU_CHIP_ID 0x4755 /* RAGE II/II+ (GTB) */
|
||||
|
|
|
@ -149,7 +149,7 @@ static void rtd2132_sscg(struct device *dev, struct drivers_i2c_rtd2132_config *
|
|||
}
|
||||
|
||||
static void rtd2132_lvds_swap(struct device *dev,
|
||||
struct drivers_i2c_rtd2132_config *cfg)
|
||||
struct drivers_i2c_rtd2132_config *cfg)
|
||||
{
|
||||
u8 swap_value = RTD2132_LVDS_SWAP_NORMAL;
|
||||
|
||||
|
|
|
@ -51,10 +51,10 @@ static void ics954309_init(struct device *dev)
|
|||
}
|
||||
|
||||
static struct device_operations ics954309_operations = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = ics954309_init,
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = ics954309_init,
|
||||
};
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
|
|
|
@ -56,10 +56,10 @@ enum pipe {
|
|||
};
|
||||
|
||||
enum transcoder {
|
||||
TRANSCODER_A = 0,
|
||||
TRANSCODER_B,
|
||||
TRANSCODER_C,
|
||||
TRANSCODER_EDP = 0xF,
|
||||
TRANSCODER_A = 0,
|
||||
TRANSCODER_B,
|
||||
TRANSCODER_C,
|
||||
TRANSCODER_EDP = 0xF,
|
||||
};
|
||||
|
||||
enum plane {
|
||||
|
|
|
@ -85,7 +85,7 @@ static int ipmi_kcs_send_data_byte(int port, const unsigned char byte)
|
|||
if (wait_ibf_timeout(port))
|
||||
return 1;
|
||||
|
||||
status = ipmi_kcs_status(port);
|
||||
status = ipmi_kcs_status(port);
|
||||
if ((status & IPMI_KCS_OBF) &&
|
||||
IPMI_KCS_STATE(status) != IPMI_KCS_STATE_WRITE) {
|
||||
printk(BIOS_ERR, "%s: status %02x\n", __func__, status);
|
||||
|
@ -106,7 +106,7 @@ static int ipmi_kcs_send_last_data_byte(int port, const unsigned char byte)
|
|||
if (wait_ibf_timeout(port))
|
||||
return 1;
|
||||
|
||||
status = ipmi_kcs_status(port);
|
||||
status = ipmi_kcs_status(port);
|
||||
if ((status & IPMI_KCS_OBF) &&
|
||||
IPMI_KCS_STATE(status) != IPMI_KCS_STATE_WRITE) {
|
||||
printk(BIOS_ERR, "%s: status %02x\n", __func__, status);
|
||||
|
|
|
@ -450,9 +450,9 @@ static struct device_operations ne2k_ops = {
|
|||
};
|
||||
|
||||
static const struct pci_driver ne2k_driver __pci_driver = {
|
||||
.ops = &ne2k_ops,
|
||||
.vendor = 0x10ec,
|
||||
.device = 0x8029,
|
||||
.ops = &ne2k_ops,
|
||||
.vendor = 0x10ec,
|
||||
.device = 0x8029,
|
||||
};
|
||||
|
||||
#endif /* __PRE_RAM__ */
|
||||
|
|
|
@ -230,15 +230,15 @@ static void r8168_init(struct device *dev)
|
|||
}
|
||||
|
||||
static struct device_operations r8168_ops = {
|
||||
.read_resources = pci_dev_read_resources,
|
||||
.set_resources = pci_dev_set_resources,
|
||||
.enable_resources = pci_dev_enable_resources,
|
||||
.init = r8168_init,
|
||||
.scan_bus = 0,
|
||||
.read_resources = pci_dev_read_resources,
|
||||
.set_resources = pci_dev_set_resources,
|
||||
.enable_resources = pci_dev_enable_resources,
|
||||
.init = r8168_init,
|
||||
.scan_bus = 0,
|
||||
};
|
||||
|
||||
static const struct pci_driver r8168_driver __pci_driver = {
|
||||
.ops = &r8168_ops,
|
||||
.vendor = 0x10ec,
|
||||
.device = 0x8168,
|
||||
.ops = &r8168_ops,
|
||||
.vendor = 0x10ec,
|
||||
.device = 0x8168,
|
||||
};
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
|
||||
/* the macro accepts the locality value, but only locality 0 is operational */
|
||||
#define TIS_REG(LOCALITY, REG) \
|
||||
(void *)(CONFIG_TPM_TIS_BASE_ADDRESS + (LOCALITY << 12) + REG)
|
||||
(void *)(CONFIG_TPM_TIS_BASE_ADDRESS + (LOCALITY << 12) + REG)
|
||||
|
||||
/* hardware registers' offsets */
|
||||
#define TIS_REG_ACCESS 0x0
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
* Basic palette.
|
||||
*/
|
||||
struct palette {
|
||||
unsigned char red;
|
||||
unsigned char green;
|
||||
unsigned char blue;
|
||||
unsigned char red;
|
||||
unsigned char green;
|
||||
unsigned char blue;
|
||||
};
|
||||
|
||||
extern const struct palette default_vga_palette[0x100];
|
||||
|
|
|
@ -51,9 +51,9 @@ static struct device_operations si_sata_ops = {
|
|||
};
|
||||
|
||||
static const struct pci_driver si_sata_driver __pci_driver = {
|
||||
.ops = &si_sata_ops,
|
||||
.vendor = 0x1095,
|
||||
.device = 0x3114,
|
||||
.ops = &si_sata_ops,
|
||||
.vendor = 0x1095,
|
||||
.device = 0x3114,
|
||||
};
|
||||
|
||||
static const struct pci_driver si_sata_driver_2 __pci_driver = {
|
||||
|
|
|
@ -455,10 +455,10 @@ try_next_port:
|
|||
dprintk(BIOS_INFO, "debug_port: %d\n", debug_port);
|
||||
dprintk(BIOS_INFO, "n_ports: %d\n", n_ports);
|
||||
|
||||
for (i = 1; i <= n_ports; i++) {
|
||||
portsc = read32(&ehci_regs->port_status[i-1]);
|
||||
dprintk(BIOS_INFO, "PORTSC #%d: %08x\n", i, portsc);
|
||||
}
|
||||
for (i = 1; i <= n_ports; i++) {
|
||||
portsc = read32(&ehci_regs->port_status[i-1]);
|
||||
dprintk(BIOS_INFO, "PORTSC #%d: %08x\n", i, portsc);
|
||||
}
|
||||
|
||||
if (port_map_tried && (new_debug_port != debug_port)) {
|
||||
if (--playtimes) {
|
||||
|
|
|
@ -37,7 +37,7 @@ static int hub_port_status(const char * buf, int feature)
|
|||
/* After USB port reset, treat device number 0 as an USB hub. Assign it with
|
||||
* a device number hub_addr. Then apply enable and reset on downstream port.
|
||||
*/
|
||||
static int dbgp_hub_enable(struct ehci_dbg_port *ehci_debug, unsigned char hub_addr,
|
||||
static int dbgp_hub_enable(struct ehci_dbg_port *ehci_debug, unsigned char hub_addr,
|
||||
unsigned char port)
|
||||
{
|
||||
char status[8];
|
||||
|
|
|
@ -108,20 +108,20 @@
|
|||
#define USB_PID_DATA_TOGGLE 0x88
|
||||
|
||||
struct usb_ctrlrequest {
|
||||
u8 bRequestType;
|
||||
u8 bRequest;
|
||||
u16 wValue;
|
||||
u16 wIndex;
|
||||
u16 wLength;
|
||||
u8 bRequestType;
|
||||
u8 bRequest;
|
||||
u16 wValue;
|
||||
u16 wIndex;
|
||||
u16 wLength;
|
||||
} __packed;
|
||||
|
||||
struct usb_debug_descriptor {
|
||||
u8 bLength;
|
||||
u8 bDescriptorType;
|
||||
u8 bLength;
|
||||
u8 bDescriptorType;
|
||||
|
||||
/* bulk endpoints with 8 byte maxpacket */
|
||||
u8 bDebugInEndpoint;
|
||||
u8 bDebugOutEndpoint;
|
||||
/* bulk endpoints with 8 byte maxpacket */
|
||||
u8 bDebugInEndpoint;
|
||||
u8 bDebugOutEndpoint;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
#define _VSTRUCT_H_
|
||||
|
||||
struct SiS_PanelDelayTbl {
|
||||
unsigned char timer[2];
|
||||
unsigned char timer[2];
|
||||
};
|
||||
|
||||
struct SiS_LCDData {
|
||||
|
@ -166,7 +166,7 @@ struct SiS_Ext2 {
|
|||
};
|
||||
|
||||
struct SiS_Part2PortTbl {
|
||||
unsigned char CR[12];
|
||||
unsigned char CR[12];
|
||||
};
|
||||
|
||||
struct SiS_CRT1Table {
|
||||
|
|
|
@ -176,30 +176,30 @@
|
|||
#define VB_VIDEOBRIDGE (VB_SISBRIDGE | VB_LVDS | VB_CHRONTEL | VB_CONEXANT)
|
||||
|
||||
enum _SIS_LCD_TYPE {
|
||||
LCD_INVALID = 0,
|
||||
LCD_800x600,
|
||||
LCD_1024x768,
|
||||
LCD_1280x1024,
|
||||
LCD_1280x960,
|
||||
LCD_640x480,
|
||||
LCD_1600x1200,
|
||||
LCD_1920x1440,
|
||||
LCD_2048x1536,
|
||||
LCD_320x240, /* FSTN */
|
||||
LCD_1400x1050,
|
||||
LCD_1152x864,
|
||||
LCD_1152x768,
|
||||
LCD_1280x768,
|
||||
LCD_1024x600,
|
||||
LCD_320x240_2, /* DSTN */
|
||||
LCD_320x240_3, /* DSTN */
|
||||
LCD_848x480,
|
||||
LCD_1280x800,
|
||||
LCD_1680x1050,
|
||||
LCD_1280x720,
|
||||
LCD_1280x854,
|
||||
LCD_CUSTOM,
|
||||
LCD_UNKNOWN
|
||||
LCD_INVALID = 0,
|
||||
LCD_800x600,
|
||||
LCD_1024x768,
|
||||
LCD_1280x1024,
|
||||
LCD_1280x960,
|
||||
LCD_640x480,
|
||||
LCD_1600x1200,
|
||||
LCD_1920x1440,
|
||||
LCD_2048x1536,
|
||||
LCD_320x240, /* FSTN */
|
||||
LCD_1400x1050,
|
||||
LCD_1152x864,
|
||||
LCD_1152x768,
|
||||
LCD_1280x768,
|
||||
LCD_1024x600,
|
||||
LCD_320x240_2, /* DSTN */
|
||||
LCD_320x240_3, /* DSTN */
|
||||
LCD_848x480,
|
||||
LCD_1280x800,
|
||||
LCD_1680x1050,
|
||||
LCD_1280x720,
|
||||
LCD_1280x854,
|
||||
LCD_CUSTOM,
|
||||
LCD_UNKNOWN
|
||||
};
|
||||
|
||||
/* End code taken from Linux kernel 3.18.5 */
|
||||
|
|
|
@ -59,7 +59,7 @@ static struct device_operations xgi_z9s_ops = {
|
|||
};
|
||||
|
||||
static const struct pci_driver xgi_z9s_driver __pci_driver = {
|
||||
.ops = &xgi_z9s_ops,
|
||||
.vendor = PCI_VENDOR_ID_XGI,
|
||||
.device = PCI_DEVICE_ID_XGI_20,
|
||||
.ops = &xgi_z9s_ops,
|
||||
.vendor = PCI_VENDOR_ID_XGI,
|
||||
.device = PCI_DEVICE_ID_XGI_20,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue