aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksij Rempel <bug-track@fisher-privat.net>2012-05-10 03:59:27 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-10 12:57:18 -0400
commit1db67664dc9342aee79e5a88f104400d5be42410 (patch)
tree2e78977a00b105caaaf9c419eacd8c424fdaecb1
parentb9914e7d863fef232d95fafa8c8fc4393a32148a (diff)
staging: rts5139: make some functions static in xd.c
Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net> Acked-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rts5139/xd.c6
-rw-r--r--drivers/staging/rts5139/xd.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/rts5139/xd.c b/drivers/staging/rts5139/xd.c
index 7f2748c7668..09f1b4c9b9a 100644
--- a/drivers/staging/rts5139/xd.c
+++ b/drivers/staging/rts5139/xd.c
@@ -862,6 +862,8 @@ static void xd_set_l2p_tbl(struct rts51x_chip *chip, int zone_no, u16 log_off,
862 zone->l2p_table[log_off] = phy_off; 862 zone->l2p_table[log_off] = phy_off;
863} 863}
864 864
865static int xd_delay_write(struct rts51x_chip *chip);
866
865static u32 xd_get_l2p_tbl(struct rts51x_chip *chip, int zone_no, u16 log_off) 867static u32 xd_get_l2p_tbl(struct rts51x_chip *chip, int zone_no, u16 log_off)
866{ 868{
867 struct xd_info *xd_card = &(chip->xd_card); 869 struct xd_info *xd_card = &(chip->xd_card);
@@ -1822,7 +1824,7 @@ Fail:
1822 TRACE_RET(chip, STATUS_FAIL); 1824 TRACE_RET(chip, STATUS_FAIL);
1823} 1825}
1824 1826
1825int xd_delay_write(struct rts51x_chip *chip) 1827static int xd_delay_write(struct rts51x_chip *chip)
1826{ 1828{
1827 struct xd_info *xd_card = &(chip->xd_card); 1829 struct xd_info *xd_card = &(chip->xd_card);
1828 struct xd_delay_write_tag *delay_write = &(xd_card->delay_write); 1830 struct xd_delay_write_tag *delay_write = &(xd_card->delay_write);
@@ -2091,7 +2093,7 @@ void xd_cleanup_work(struct rts51x_chip *chip)
2091 } 2093 }
2092} 2094}
2093 2095
2094int xd_power_off_card3v3(struct rts51x_chip *chip) 2096static int xd_power_off_card3v3(struct rts51x_chip *chip)
2095{ 2097{
2096 int retval; 2098 int retval;
2097 2099
diff --git a/drivers/staging/rts5139/xd.h b/drivers/staging/rts5139/xd.h
index fa695903ba6..55e4205e23f 100644
--- a/drivers/staging/rts5139/xd.h
+++ b/drivers/staging/rts5139/xd.h
@@ -182,12 +182,10 @@
182#define CIS1_9 (256 + 9) 182#define CIS1_9 (256 + 9)
183 183
184int reset_xd_card(struct rts51x_chip *chip); 184int reset_xd_card(struct rts51x_chip *chip);
185int xd_delay_write(struct rts51x_chip *chip);
186int xd_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 start_sector, 185int xd_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 start_sector,
187 u16 sector_cnt); 186 u16 sector_cnt);
188void xd_free_l2p_tbl(struct rts51x_chip *chip); 187void xd_free_l2p_tbl(struct rts51x_chip *chip);
189void xd_cleanup_work(struct rts51x_chip *chip); 188void xd_cleanup_work(struct rts51x_chip *chip);
190int xd_power_off_card3v3(struct rts51x_chip *chip);
191int release_xd_card(struct rts51x_chip *chip); 189int release_xd_card(struct rts51x_chip *chip);
192 190
193#endif /* __RTS51X_XD_H */ 191#endif /* __RTS51X_XD_H */