Home
last modified time | relevance | path

Searched refs:calc_divs (Results 1 – 1 of 1) sorted by relevance

/drivers/i2c/busses/
Di2c-s3c2410.c612 unsigned int calc_divs = clkin / wanted; in s3c24xx_i2c_calcdivisor() local
615 if (calc_divs > (16*16)) in s3c24xx_i2c_calcdivisor()
620 calc_divs += calc_div1-1; in s3c24xx_i2c_calcdivisor()
621 calc_divs /= calc_div1; in s3c24xx_i2c_calcdivisor()
623 if (calc_divs == 0) in s3c24xx_i2c_calcdivisor()
624 calc_divs = 1; in s3c24xx_i2c_calcdivisor()
625 if (calc_divs > 17) in s3c24xx_i2c_calcdivisor()
626 calc_divs = 17; in s3c24xx_i2c_calcdivisor()
628 *divs = calc_divs; in s3c24xx_i2c_calcdivisor()
631 return clkin / (calc_divs * calc_div1); in s3c24xx_i2c_calcdivisor()