diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-08-22 19:58:41 +0200 |
---|---|---|
committer | Andi Shyti <andi.shyti@kernel.org> | 2024-09-10 00:36:42 +0200 |
commit | bc07fb417007b323d34651be20b9135480a947dc (patch) | |
tree | 628054a1147b9c3d9149f2060dac54b8b1e80650 /drivers/i2c/busses/i2c-designware-common.c | |
parent | i2c: designware: Move exports to I2C_DW namespaces (diff) | |
download | linux-bc07fb417007b323d34651be20b9135480a947dc.tar.xz linux-bc07fb417007b323d34651be20b9135480a947dc.zip |
i2c: designware: Remove ->disable() callback
Commit 90312351fd1e ("i2c: designware: MASTER mode as separated driver")
introduced ->disable() callback but there is no real use for it. Both
i2c-designware-master.c and i2c-designware-slave.c set it to the same
i2c_dw_disable() and scope is inside the same kernel module.
That said, replace the callback by explicitly calling the i2c_dw_disable().
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-designware-common.c')
-rw-r--r-- | drivers/i2c/busses/i2c-designware-common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-designware-common.c b/drivers/i2c/busses/i2c-designware-common.c index 2601876f76ad..b60c55587e48 100644 --- a/drivers/i2c/busses/i2c-designware-common.c +++ b/drivers/i2c/busses/i2c-designware-common.c @@ -734,6 +734,7 @@ void i2c_dw_disable(struct dw_i2c_dev *dev) i2c_dw_release_lock(dev); } +EXPORT_SYMBOL_GPL(i2c_dw_disable); MODULE_DESCRIPTION("Synopsys DesignWare I2C bus adapter core"); MODULE_LICENSE("GPL"); |