mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 23:23:55 +08:00
staging: rts5208: Parenthesis alignment
Matching open parenthesis Signed-off-by: Wayne Porter <wporter82@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2c6b3b9347
commit
5d2de0d9b7
@ -1011,9 +1011,9 @@ int switch_normal_clock(struct rtsx_chip *chip, int clk);
|
|||||||
int enable_card_clock(struct rtsx_chip *chip, u8 card);
|
int enable_card_clock(struct rtsx_chip *chip, u8 card);
|
||||||
int disable_card_clock(struct rtsx_chip *chip, u8 card);
|
int disable_card_clock(struct rtsx_chip *chip, u8 card);
|
||||||
int card_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip,
|
int card_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip,
|
||||||
u32 sec_addr, u16 sec_cnt);
|
u32 sec_addr, u16 sec_cnt);
|
||||||
void trans_dma_enable(enum dma_data_direction dir,
|
void trans_dma_enable(enum dma_data_direction dir,
|
||||||
struct rtsx_chip *chip, u32 byte_cnt, u8 pack_size);
|
struct rtsx_chip *chip, u32 byte_cnt, u8 pack_size);
|
||||||
void toggle_gpio(struct rtsx_chip *chip, u8 gpio);
|
void toggle_gpio(struct rtsx_chip *chip, u8 gpio);
|
||||||
void turn_on_led(struct rtsx_chip *chip, u8 gpio);
|
void turn_on_led(struct rtsx_chip *chip, u8 gpio);
|
||||||
void turn_off_led(struct rtsx_chip *chip, u8 gpio);
|
void turn_off_led(struct rtsx_chip *chip, u8 gpio);
|
||||||
@ -1033,7 +1033,7 @@ static inline u32 get_card_size(struct rtsx_chip *chip, unsigned int lun)
|
|||||||
struct sd_info *sd_card = &(chip->sd_card);
|
struct sd_info *sd_card = &(chip->sd_card);
|
||||||
|
|
||||||
if ((get_lun_card(chip, lun) == SD_CARD) &&
|
if ((get_lun_card(chip, lun) == SD_CARD) &&
|
||||||
(sd_card->sd_lock_status & SD_LOCKED))
|
(sd_card->sd_lock_status & SD_LOCKED))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return chip->capacity[lun];
|
return chip->capacity[lun];
|
||||||
@ -1073,25 +1073,25 @@ static inline int card_power_off_all(struct rtsx_chip *chip)
|
|||||||
static inline void rtsx_clear_xd_error(struct rtsx_chip *chip)
|
static inline void rtsx_clear_xd_error(struct rtsx_chip *chip)
|
||||||
{
|
{
|
||||||
rtsx_write_register(chip, CARD_STOP, XD_STOP | XD_CLR_ERR,
|
rtsx_write_register(chip, CARD_STOP, XD_STOP | XD_CLR_ERR,
|
||||||
XD_STOP | XD_CLR_ERR);
|
XD_STOP | XD_CLR_ERR);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void rtsx_clear_sd_error(struct rtsx_chip *chip)
|
static inline void rtsx_clear_sd_error(struct rtsx_chip *chip)
|
||||||
{
|
{
|
||||||
rtsx_write_register(chip, CARD_STOP, SD_STOP | SD_CLR_ERR,
|
rtsx_write_register(chip, CARD_STOP, SD_STOP | SD_CLR_ERR,
|
||||||
SD_STOP | SD_CLR_ERR);
|
SD_STOP | SD_CLR_ERR);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void rtsx_clear_ms_error(struct rtsx_chip *chip)
|
static inline void rtsx_clear_ms_error(struct rtsx_chip *chip)
|
||||||
{
|
{
|
||||||
rtsx_write_register(chip, CARD_STOP, MS_STOP | MS_CLR_ERR,
|
rtsx_write_register(chip, CARD_STOP, MS_STOP | MS_CLR_ERR,
|
||||||
MS_STOP | MS_CLR_ERR);
|
MS_STOP | MS_CLR_ERR);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void rtsx_clear_spi_error(struct rtsx_chip *chip)
|
static inline void rtsx_clear_spi_error(struct rtsx_chip *chip)
|
||||||
{
|
{
|
||||||
rtsx_write_register(chip, CARD_STOP, SPI_STOP | SPI_CLR_ERR,
|
rtsx_write_register(chip, CARD_STOP, SPI_STOP | SPI_CLR_ERR,
|
||||||
SPI_STOP | SPI_CLR_ERR);
|
SPI_STOP | SPI_CLR_ERR);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SUPPORT_SDIO_ASPM
|
#ifdef SUPPORT_SDIO_ASPM
|
||||||
|
Loading…
Reference in New Issue
Block a user