summaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-designware-common.c
diff options
context:
space:
mode:
authorPhil Reid <preid@electromag.com.au>2017-11-02 05:40:26 +0300
committerWolfram Sang <wsa@the-dreams.de>2017-11-27 20:39:30 +0300
commit0326f9f801b2411811906361db870ccdada98b92 (patch)
tree709bf1bc8c858e382057b0d5bfda8d0b1e3992b4 /drivers/i2c/busses/i2c-designware-common.c
parenta34a0b6da22540d19e578131bbb60994892473d3 (diff)
downloadlinux-0326f9f801b2411811906361db870ccdada98b92.tar.xz
i2c: designware: rename i2c_dw_plat_prepare_clk to i2c_dw_prepare_clk
For consistency with the rest of the file rename function and parameter to be consistent with the reset of the common file. Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Phil Reid <preid@electromag.com.au> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-designware-common.c')
-rw-r--r--drivers/i2c/busses/i2c-designware-common.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/i2c/busses/i2c-designware-common.c b/drivers/i2c/busses/i2c-designware-common.c
index b79f34245930..3d684c6650b5 100644
--- a/drivers/i2c/busses/i2c-designware-common.c
+++ b/drivers/i2c/busses/i2c-designware-common.c
@@ -186,15 +186,15 @@ unsigned long i2c_dw_clk_rate(struct dw_i2c_dev *dev)
return dev->get_clk_rate_khz(dev);
}
-int i2c_dw_plat_prepare_clk(struct dw_i2c_dev *i_dev, bool prepare)
+int i2c_dw_prepare_clk(struct dw_i2c_dev *dev, bool prepare)
{
- if (IS_ERR(i_dev->clk))
- return PTR_ERR(i_dev->clk);
+ if (IS_ERR(dev->clk))
+ return PTR_ERR(dev->clk);
if (prepare)
- return clk_prepare_enable(i_dev->clk);
+ return clk_prepare_enable(dev->clk);
- clk_disable_unprepare(i_dev->clk);
+ clk_disable_unprepare(dev->clk);
return 0;
}