Re: [PATCH] power/mpc85xx: Add delay after enabling I2C master

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

 



> +#ifdef CONFIG_PPC_85xx
> +	delay_val = 65536 / (fsl_get_sys_freq() / 2000000);
> +#else
> +	delay_val = 1000000 / i2c->real_clk + 1;
> +#endif

Please don't add #ifdef for such things. You can make use of
struct mpc_i2c_data and put a flag there.

Attachment: signature.asc
Description: Digital 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