Re: [PATCH] The input clock of I2C should be platform/2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 27, 2016 at 03:48:13PM +0800, ying.zhang22455@xxxxxxx wrote:
> From: Ying Zhang <b40530@xxxxxxxxxxxxx>
> 

The patch description should state where this information comes from.

> Signed-off-by: Ying Zhang <b40530@xxxxxxxxxxxxx>
> ---
>  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@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux