Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312592
b: refs/heads/master
c: 1a5d39d
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Mark Brown committed Jul 2, 2012
1 parent 3c28dd8 commit 994e33c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 1e12dfc9681fed46fbc9fffc6aba9613908c1213
refs/heads/master: 1a5d39d0644fa01e659ee42b5ec47abbd7db3afb
4 changes: 2 additions & 2 deletions trunk/drivers/regulator/tps65217-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static int tps65217_vsel_to_uv1(unsigned int vsel)

static int tps65217_uv_to_vsel1(int uV, unsigned int *vsel)
{
if ((uV < 0) && (uV > 3300000))
if (uV < 0 || uV > 3300000)
return -EINVAL;

if (uV <= 1500000)
Expand Down Expand Up @@ -112,7 +112,7 @@ static int tps65217_vsel_to_uv2(unsigned int vsel)

static int tps65217_uv_to_vsel2(int uV, unsigned int *vsel)
{
if ((uV < 0) && (uV > 3300000))
if (uV < 0 || uV > 3300000)
return -EINVAL;

if (uV <= 1900000)
Expand Down

0 comments on commit 994e33c

Please sign in to comment.