Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271592
b: refs/heads/master
c: 1bddab7
h: refs/heads/master
v: v3
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Oct 30, 2011
1 parent b2355cf commit 940071e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 6fcf84a2c0d5f51a457555d76e037cf3cc85bc7a
refs/heads/master: 1bddab7f7d5b61f17b0bbd669f60818d553620be
6 changes: 3 additions & 3 deletions trunk/drivers/i2c/algos/i2c-algo-bit.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
/* ----- global variables --------------------------------------------- */

static int bit_test; /* see if the line-setting functions work */
module_param(bit_test, bool, 0);
MODULE_PARM_DESC(bit_test, "Test the lines of the bus to see if it is stuck");
module_param(bit_test, int, S_IRUGO);
MODULE_PARM_DESC(bit_test, "lines testing - 0 off; 1 report; 2 fail if stuck");

#ifdef DEBUG
static int i2c_debug = 1;
Expand Down Expand Up @@ -624,7 +624,7 @@ static int __i2c_bit_add_bus(struct i2c_adapter *adap,

if (bit_test) {
ret = test_bus(adap);
if (ret < 0)
if (bit_test >= 2 && ret < 0)
return -ENODEV;
}

Expand Down

0 comments on commit 940071e

Please sign in to comment.