i2c: designware: Move clk_freq into struct dw_i2c_dev
authorWeifeng Voon <weifeng.voon@intel.com>
Fri, 12 Aug 2016 14:02:47 +0000 (17:02 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 25 Aug 2016 22:42:02 +0000 (00:42 +0200)
commit19c0a5399fe46218c2b5a5c17a01cf60f91ff5ae
treefc6d17a11ee86fc45a6c94c72b67a966fdc30748
parentf9484852567987158545523d6d6325d9cdf482b1
i2c: designware: Move clk_freq into struct dw_i2c_dev

I2c designware controller operate speed is configured in the register
IC_CON. Previously the operate speed is determined by a local variable
clk_freq. This patch will move the local variable clk_freq into struct
dw_i2c_dev. This change will ease the set and get of the clk_freq.

Signed-off-by: Weifeng Voon <weifeng.voon@intel.com>
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-core.h
drivers/i2c/busses/i2c-designware-platdrv.c