Commit 1db67664 authored by Oleksij Rempel's avatar Oleksij Rempel Committed by Greg Kroah-Hartman

staging: rts5139: make some functions static in xd.c

Signed-off-by: default avatarOleksij Rempel <bug-track@fisher-privat.net>
Acked-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b9914e7d
...@@ -862,6 +862,8 @@ static void xd_set_l2p_tbl(struct rts51x_chip *chip, int zone_no, u16 log_off, ...@@ -862,6 +862,8 @@ static void xd_set_l2p_tbl(struct rts51x_chip *chip, int zone_no, u16 log_off,
zone->l2p_table[log_off] = phy_off; zone->l2p_table[log_off] = phy_off;
} }
static int xd_delay_write(struct rts51x_chip *chip);
static u32 xd_get_l2p_tbl(struct rts51x_chip *chip, int zone_no, u16 log_off) static u32 xd_get_l2p_tbl(struct rts51x_chip *chip, int zone_no, u16 log_off)
{ {
struct xd_info *xd_card = &(chip->xd_card); struct xd_info *xd_card = &(chip->xd_card);
...@@ -1822,7 +1824,7 @@ static int xd_write_multiple_pages(struct rts51x_chip *chip, u32 old_blk, ...@@ -1822,7 +1824,7 @@ static int xd_write_multiple_pages(struct rts51x_chip *chip, u32 old_blk,
TRACE_RET(chip, STATUS_FAIL); TRACE_RET(chip, STATUS_FAIL);
} }
int xd_delay_write(struct rts51x_chip *chip) static int xd_delay_write(struct rts51x_chip *chip)
{ {
struct xd_info *xd_card = &(chip->xd_card); struct xd_info *xd_card = &(chip->xd_card);
struct xd_delay_write_tag *delay_write = &(xd_card->delay_write); struct xd_delay_write_tag *delay_write = &(xd_card->delay_write);
...@@ -2091,7 +2093,7 @@ void xd_cleanup_work(struct rts51x_chip *chip) ...@@ -2091,7 +2093,7 @@ void xd_cleanup_work(struct rts51x_chip *chip)
} }
} }
int xd_power_off_card3v3(struct rts51x_chip *chip) static int xd_power_off_card3v3(struct rts51x_chip *chip)
{ {
int retval; int retval;
......
...@@ -182,12 +182,10 @@ ...@@ -182,12 +182,10 @@
#define CIS1_9 (256 + 9) #define CIS1_9 (256 + 9)
int reset_xd_card(struct rts51x_chip *chip); int reset_xd_card(struct rts51x_chip *chip);
int xd_delay_write(struct rts51x_chip *chip);
int xd_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 start_sector, int xd_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 start_sector,
u16 sector_cnt); u16 sector_cnt);
void xd_free_l2p_tbl(struct rts51x_chip *chip); void xd_free_l2p_tbl(struct rts51x_chip *chip);
void xd_cleanup_work(struct rts51x_chip *chip); void xd_cleanup_work(struct rts51x_chip *chip);
int xd_power_off_card3v3(struct rts51x_chip *chip);
int release_xd_card(struct rts51x_chip *chip); int release_xd_card(struct rts51x_chip *chip);
#endif /* __RTS51X_XD_H */ #endif /* __RTS51X_XD_H */
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