aboutsummaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authormokopatches <mokopatches@openmoko.org>2008-11-19 17:03:13 +0000
committerwarmcat <andy@warmcat.com>2008-11-19 17:03:13 +0000
commit7bc14d3aaa286e2f5268c27fec4397ce6f831bf0 (patch)
treebe3038d9082f46194c0c107e478db3fcb9d5d5c5 /drivers/i2c
parent2acb523a3d587fd65c6b1594bbad29b87f4a8da0 (diff)
i2c-permit_invalid_addrs.patch
We need this stupid workaround since our amplifier chip uses a 'reserved' I2C address Signed-off-by: Harald Welte <laforge@openmoko.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/i2c-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 5a485c22660..6f7c4d886ee 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -1129,11 +1129,11 @@ static int i2c_probe_address(struct i2c_adapter *adapter, int addr, int kind,
int err;
/* Make sure the address is valid */
- if (addr < 0x03 || addr > 0x77) {
+ /*if (addr < 0x03 || addr > 0x77) {
dev_warn(&adapter->dev, "Invalid probe address 0x%02x\n",
addr);
return -EINVAL;
- }
+ }*/
/* Skip if already in use */
if (i2c_check_addr(adapter, addr))