Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325012
b: refs/heads/master
c: 211ccb3
h: refs/heads/master
v: v3
  • Loading branch information
Toshiaki Yamane authored and Greg Kroah-Hartman committed Sep 10, 2012
1 parent 4f4d131 commit f88aa57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 220e7b3cb5ed36347fb6c7f87207d8cb0387d71a
refs/heads/master: 211ccb397b51ccb0953b0374c5c4f7e4df5574a8
7 changes: 3 additions & 4 deletions trunk/drivers/staging/rts_pstor/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1160,13 +1160,12 @@ static int sd_check_switch_mode(struct rtsx_chip *chip, u8 mode,
static u8 downgrade_switch_mode(u8 func_group, u8 func_to_switch)
{
if (func_group == SD_FUNC_GROUP_1) {
if (func_to_switch > HS_SUPPORT) {
if (func_to_switch > HS_SUPPORT)
func_to_switch--;
}

} else if (func_group == SD_FUNC_GROUP_4) {
if (func_to_switch > CURRENT_LIMIT_200) {
if (func_to_switch > CURRENT_LIMIT_200)
func_to_switch--;
}
}

return func_to_switch;
Expand Down

0 comments on commit f88aa57

Please sign in to comment.