Commit f8347187 authored by Morgan Creekmore's avatar Morgan Creekmore Committed by Greg Kroah-Hartman

Staging: rts5139: rts51x_card: fixed style issues

fixed coding style issues, long lines and
extra parentheses on return statement
Signed-off-by: default avatarMorgan Creekmore <morgan.creekmore@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ee2d9df0
...@@ -373,7 +373,7 @@ void rts51x_release_cards(struct rts51x_chip *chip) ...@@ -373,7 +373,7 @@ void rts51x_release_cards(struct rts51x_chip *chip)
static inline u8 double_depth(u8 depth) static inline u8 double_depth(u8 depth)
{ {
return ((depth > 1) ? (depth - 1) : depth); return (depth > 1) ? (depth - 1) : depth;
} }
int rts51x_switch_ssc_clock(struct rts51x_chip *chip, int clk) int rts51x_switch_ssc_clock(struct rts51x_chip *chip, int clk)
...@@ -653,8 +653,8 @@ int rts51x_switch_normal_clock(struct rts51x_chip *chip, int clk) ...@@ -653,8 +653,8 @@ int rts51x_switch_normal_clock(struct rts51x_chip *chip, int clk)
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
int rts51x_card_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 sec_addr, int rts51x_card_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip,
u16 sec_cnt) u32 sec_addr, u16 sec_cnt)
{ {
int retval; int retval;
unsigned int lun = SCSI_LUN(srb); unsigned int lun = SCSI_LUN(srb);
...@@ -770,8 +770,8 @@ void rts51x_eject_card(struct rts51x_chip *chip, unsigned int lun) ...@@ -770,8 +770,8 @@ void rts51x_eject_card(struct rts51x_chip *chip, unsigned int lun)
XD_INT | MS_INT | SD_INT); XD_INT | MS_INT | SD_INT);
} }
void rts51x_trans_dma_enable(enum dma_data_direction dir, struct rts51x_chip *chip, void rts51x_trans_dma_enable(enum dma_data_direction dir,
u32 byte_cnt, u8 pack_size) struct rts51x_chip *chip, u32 byte_cnt, u8 pack_size)
{ {
if (pack_size > DMA_1024) if (pack_size > DMA_1024)
pack_size = DMA_512; pack_size = DMA_512;
......
...@@ -743,13 +743,13 @@ void rts51x_init_cards(struct rts51x_chip *chip); ...@@ -743,13 +743,13 @@ void rts51x_init_cards(struct rts51x_chip *chip);
void rts51x_release_cards(struct rts51x_chip *chip); void rts51x_release_cards(struct rts51x_chip *chip);
int rts51x_switch_ssc_clock(struct rts51x_chip *chip, int clk); int rts51x_switch_ssc_clock(struct rts51x_chip *chip, int clk);
int rts51x_switch_normal_clock(struct rts51x_chip *chip, int clk); int rts51x_switch_normal_clock(struct rts51x_chip *chip, int clk);
int rts51x_card_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 sec_addr, int rts51x_card_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip,
u16 sec_cnt); u32 sec_addr, u16 sec_cnt);
u8 rts51x_get_lun_card(struct rts51x_chip *chip, unsigned int lun); u8 rts51x_get_lun_card(struct rts51x_chip *chip, unsigned int lun);
int rts51x_select_card(struct rts51x_chip *chip, int card); int rts51x_select_card(struct rts51x_chip *chip, int card);
void rts51x_eject_card(struct rts51x_chip *chip, unsigned int lun); void rts51x_eject_card(struct rts51x_chip *chip, unsigned int lun);
void rts51x_trans_dma_enable(enum dma_data_direction dir, struct rts51x_chip *chip, void rts51x_trans_dma_enable(enum dma_data_direction dir,
u32 byte_cnt, u8 pack_size); struct rts51x_chip *chip, u32 byte_cnt, u8 pack_size);
int rts51x_enable_card_clock(struct rts51x_chip *chip, u8 card); int rts51x_enable_card_clock(struct rts51x_chip *chip, u8 card);
int rts51x_card_power_on(struct rts51x_chip *chip, u8 card); int rts51x_card_power_on(struct rts51x_chip *chip, u8 card);
int rts51x_toggle_gpio(struct rts51x_chip *chip, u8 gpio); int rts51x_toggle_gpio(struct rts51x_chip *chip, u8 gpio);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment