Skip to content

Commit

Permalink
pcmcia: clean an indentation issues, remove extraneous spaces
Browse files Browse the repository at this point in the history
Trivial fix to clean up indentation issues, remove spaces

Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Dominik Brodowski <[email protected]>
  • Loading branch information
Colin Ian King authored and Dominik Brodowski committed Nov 21, 2019
1 parent c74386d commit 84182fc
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions drivers/pcmcia/i82092.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,27 +431,25 @@ static int i82092aa_get_status(struct pcmcia_socket *socket, u_int *value)

/* IO cards have a different meaning of bits 0,1 */
/* Also notice the inverse-logic on the bits */
if (indirect_read(sock, I365_INTCTL) & I365_PC_IOCARD) {
/* IO card */
if (!(status & I365_CS_STSCHG))
*value |= SS_STSCHG;
} else { /* non I/O card */
if (!(status & I365_CS_BVD1))
*value |= SS_BATDEAD;
if (!(status & I365_CS_BVD2))
*value |= SS_BATWARN;

}
if (indirect_read(sock, I365_INTCTL) & I365_PC_IOCARD) {
/* IO card */
if (!(status & I365_CS_STSCHG))
*value |= SS_STSCHG;
} else { /* non I/O card */
if (!(status & I365_CS_BVD1))
*value |= SS_BATDEAD;
if (!(status & I365_CS_BVD2))
*value |= SS_BATWARN;
}

if (status & I365_CS_WRPROT)
(*value) |= SS_WRPROT; /* card is write protected */
if (status & I365_CS_WRPROT)
(*value) |= SS_WRPROT; /* card is write protected */

if (status & I365_CS_READY)
(*value) |= SS_READY; /* card is not busy */
if (status & I365_CS_READY)
(*value) |= SS_READY; /* card is not busy */

if (status & I365_CS_POWERON)
(*value) |= SS_POWERON; /* power is applied to the card */

if (status & I365_CS_POWERON)
(*value) |= SS_POWERON; /* power is applied to the card */

leave("i82092aa_get_status");
return 0;
Expand Down

0 comments on commit 84182fc

Please sign in to comment.