RE: [PATCH v2 2/2] i2c: QUP based bus driver for Qualcomm MSMchipsets

From: Linus WALLEIJ
Date: Fri Sep 03 2010 - 04:38:50 EST


[Kenneth]

> From: Kenneth Heitke [mailto:kheitke@xxxxxxxxxxxxxx]
> Subject: [PATCH v2 2/2] i2c: QUP based bus driver for Qualcomm MSM
> chipsets
> (...)
> + dev->one_bit_t = USEC_PER_SEC/pdata->bus_freq;

Maybe you want to use DIV_ROUND_UP() from kernel.h here
to be on the safe side?

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/