Re: [PATCH v1 05/11] mmc: mmci: use NSEC_PER_SEC macro

2014-05-13 Thread Linus Walleij
On Tue, Apr 29, 2014 at 10:20 AM,  srinivas.kandaga...@linaro.org wrote:

 From: Srinivas Kandagatla srinivas.kandaga...@linaro.org

 This patch replaces a constant used in calculating timeout with a proper
 macro. This is make code more readable.

 Signed-off-by: Srinivas Kandagatla srinivas.kandaga...@linaro.org

Reviewed-by: Linus Walleij linus.wall...@linaro.org

This can be merged out-of-order just as-is.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line unsubscribe linux-arm-msm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v1 05/11] mmc: mmci: use NSEC_PER_SEC macro

2014-05-13 Thread Srinivas Kandagatla



On 13/05/14 08:20, Linus Walleij wrote:

On Tue, Apr 29, 2014 at 10:20 AM,  srinivas.kandaga...@linaro.org wrote:


From: Srinivas Kandagatla srinivas.kandaga...@linaro.org

This patch replaces a constant used in calculating timeout with a proper
macro. This is make code more readable.

Signed-off-by: Srinivas Kandagatla srinivas.kandaga...@linaro.org


Reviewed-by: Linus Walleij linus.wall...@linaro.org

This can be merged out-of-order just as-is.

Agreed, I can take this patch out of this series.

thanks,
srini


Yours,
Linus Walleij


--
To unsubscribe from this list: send the line unsubscribe linux-arm-msm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v1 05/11] mmc: mmci: use NSEC_PER_SEC macro

2014-04-29 Thread srinivas . kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@linaro.org

This patch replaces a constant used in calculating timeout with a proper
macro. This is make code more readable.

Signed-off-by: Srinivas Kandagatla srinivas.kandaga...@linaro.org
---
 drivers/mmc/host/mmci.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index 36db31e..4f8d0ba 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -759,7 +759,7 @@ static void mmci_start_data(struct mmci_host *host, struct 
mmc_data *data)
data-bytes_xfered = 0;
 
clks = (unsigned long long)data-timeout_ns * host-cclk;
-   do_div(clks, 10UL);
+   do_div(clks, NSEC_PER_SEC);
 
timeout = data-timeout_clks + (unsigned int)clks;
 
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-arm-msm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html