This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/media_tree.git tree:

Subject: [media] mt9p031: fixed calculation of clk_div
Author:  Enrico Scholz <[email protected]>
Date:    Wed Feb 4 11:53:32 2015 -0300

There must be used 'min_t', not 'max_t' for calculating the divider.

Signed-off-by: Enrico Scholz <[email protected]>
Signed-off-by: Laurent Pinchart <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/i2c/mt9p031.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/media_tree.git/commit/?id=198b47ddd23498cd88f4ec2c2a050eb727cc357c

diff --git a/drivers/media/i2c/mt9p031.c b/drivers/media/i2c/mt9p031.c
index c56a58b..e06759c 100644
--- a/drivers/media/i2c/mt9p031.c
+++ b/drivers/media/i2c/mt9p031.c
@@ -251,7 +251,7 @@ static int mt9p031_clk_setup(struct mt9p031 *mt9p031)
                div = DIV_ROUND_UP(pdata->ext_freq, pdata->target_freq);
                div = roundup_pow_of_two(div) / 2;
 
-               mt9p031->clk_div = max_t(unsigned int, div, 64);
+               mt9p031->clk_div = min_t(unsigned int, div, 64);
                mt9p031->use_pll = false;
 
                return 0;

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to