diff options
-rw-r--r-- | drivers/i2c/i2c-core.c | 9 | ||||
-rw-r--r-- | include/linux/i2c.h | 1 |
2 files changed, 3 insertions, 7 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index cdbbd9bdb7b4..981de21ab814 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -1426,13 +1426,7 @@ static void i2c_adapter_dev_release(struct device *dev) | |||
1426 | complete(&adap->dev_released); | 1426 | complete(&adap->dev_released); |
1427 | } | 1427 | } |
1428 | 1428 | ||
1429 | /* | 1429 | unsigned int i2c_adapter_depth(struct i2c_adapter *adapter) |
1430 | * This function is only needed for mutex_lock_nested, so it is never | ||
1431 | * called unless locking correctness checking is enabled. Thus we | ||
1432 | * make it inline to avoid a compiler warning. That's what gcc ends up | ||
1433 | * doing anyway. | ||
1434 | */ | ||
1435 | static inline unsigned int i2c_adapter_depth(struct i2c_adapter *adapter) | ||
1436 | { | 1430 | { |
1437 | unsigned int depth = 0; | 1431 | unsigned int depth = 0; |
1438 | 1432 | ||
@@ -1441,6 +1435,7 @@ static inline unsigned int i2c_adapter_depth(struct i2c_adapter *adapter) | |||
1441 | 1435 | ||
1442 | return depth; | 1436 | return depth; |
1443 | } | 1437 | } |
1438 | EXPORT_SYMBOL_GPL(i2c_adapter_depth); | ||
1444 | 1439 | ||
1445 | /* | 1440 | /* |
1446 | * Let users instantiate I2C devices through sysfs. This can be used when | 1441 | * Let users instantiate I2C devices through sysfs. This can be used when |
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 4a4099d3a4b9..6422eef428c4 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
@@ -698,6 +698,7 @@ extern void i2c_clients_command(struct i2c_adapter *adap, | |||
698 | 698 | ||
699 | extern struct i2c_adapter *i2c_get_adapter(int nr); | 699 | extern struct i2c_adapter *i2c_get_adapter(int nr); |
700 | extern void i2c_put_adapter(struct i2c_adapter *adap); | 700 | extern void i2c_put_adapter(struct i2c_adapter *adap); |
701 | extern unsigned int i2c_adapter_depth(struct i2c_adapter *adapter); | ||
701 | 702 | ||
702 | void i2c_parse_fw_timings(struct device *dev, struct i2c_timings *t, bool use_defaults); | 703 | void i2c_parse_fw_timings(struct device *dev, struct i2c_timings *t, bool use_defaults); |
703 | 704 | ||