Message ID | 1453880893-3015-1-git-send-email-ying.zhang22455@nxp.com |
---|---|
State | Changes Requested |
Headers | show |
On Wed, Jan 27, 2016 at 03:48:13PM +0800, ying.zhang22455@nxp.com wrote: > From: Ying Zhang <b40530@freescale.com> > The patch description should state where this information comes from. > Signed-off-by: Ying Zhang <b40530@freescale.com> > --- > drivers/i2c/busses/i2c-imx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c > index a2b132c..806cb99 100644 > --- a/drivers/i2c/busses/i2c-imx.c > +++ b/drivers/i2c/busses/i2c-imx.c > @@ -475,7 +475,7 @@ static void i2c_imx_set_clk(struct imx_i2c_struct *i2c_imx) > int i; > > /* Divider value calculation */ > - i2c_clk_rate = clk_get_rate(i2c_imx->clk); > + i2c_clk_rate = clk_get_rate(i2c_imx->clk) / 2; > if (i2c_imx->cur_clk == i2c_clk_rate) > return; > > -- > 2.1.0.27.g96db324 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-i2c" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index a2b132c..806cb99 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c @@ -475,7 +475,7 @@ static void i2c_imx_set_clk(struct imx_i2c_struct *i2c_imx) int i; /* Divider value calculation */ - i2c_clk_rate = clk_get_rate(i2c_imx->clk); + i2c_clk_rate = clk_get_rate(i2c_imx->clk) / 2; if (i2c_imx->cur_clk == i2c_clk_rate) return;