Skip to content

Commit

Permalink
PCMCIA/i82092: insert blank line after declarations
Browse files Browse the repository at this point in the history
Improve readability of the code by inserting a blank line
after variable declarations.

Co-developed-by: Lukas Panzer <[email protected]>
Signed-off-by: Lukas Panzer <[email protected]>
Signed-off-by: Simon Geis <[email protected]>
Signed-off-by: Dominik Brodowski <[email protected]>
  • Loading branch information
Simon Geis authored and Dominik Brodowski committed Dec 16, 2019
1 parent ae1f62c commit 4ae66dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/pcmcia/i82092.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ static unsigned char indirect_read(int socket, unsigned short reg)
unsigned short int port;
unsigned char val;
unsigned long flags;

spin_lock_irqsave(&port_lock, flags);
reg += socket * 0x40;
port = sockets[socket].io_base;
Expand All @@ -202,6 +203,7 @@ static unsigned short indirect_read16(int socket, unsigned short reg)
unsigned short int port;
unsigned short tmp;
unsigned long flags;

spin_lock_irqsave(&port_lock, flags);
reg = reg + socket * 0x40;
port = sockets[socket].io_base;
Expand All @@ -219,6 +221,7 @@ static void indirect_write(int socket, unsigned short reg, unsigned char value)
{
unsigned short int port;
unsigned long flags;

spin_lock_irqsave(&port_lock, flags);
reg = reg + socket * 0x40;
port = sockets[socket].io_base;
Expand All @@ -232,6 +235,7 @@ static void indirect_setbit(int socket, unsigned short reg, unsigned char mask)
unsigned short int port;
unsigned char val;
unsigned long flags;

spin_lock_irqsave(&port_lock, flags);
reg = reg + socket * 0x40;
port = sockets[socket].io_base;
Expand All @@ -249,6 +253,7 @@ static void indirect_resetbit(int socket, unsigned short reg, unsigned char mask
unsigned short int port;
unsigned char val;
unsigned long flags;

spin_lock_irqsave(&port_lock, flags);
reg = reg + socket * 0x40;
port = sockets[socket].io_base;
Expand All @@ -265,6 +270,7 @@ static void indirect_write16(int socket, unsigned short reg, unsigned short valu
unsigned short int port;
unsigned char val;
unsigned long flags;

spin_lock_irqsave(&port_lock, flags);
reg = reg + socket * 0x40;
port = sockets[socket].io_base;
Expand Down Expand Up @@ -317,6 +323,7 @@ static irqreturn_t i82092aa_interrupt(int irq, void *dev)

for (i = 0; i < socket_count; i++) {
int csc;

if (sockets[i].card_state == 0) /* Inactive socket, should not happen */
continue;

Expand Down Expand Up @@ -362,6 +369,7 @@ static irqreturn_t i82092aa_interrupt(int irq, void *dev)
static int card_present(int socketno)
{
unsigned int val;

enter("card_present");

if ((socketno < 0) || (socketno >= MAX_SOCKETS))
Expand Down

0 comments on commit 4ae66dd

Please sign in to comment.