All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jiří Pinkava" <j-pi@seznam.cz>
To: gennarone@gmail.com, m.chehab@samsung.com
Cc: mkrufky@linuxtv.org, linux-media@vger.kernel.org
Subject: Subject: [PATCH 2/2] [media] r820t: simplify divisor calculation
Date: Sun, 29 Sep 2013 12:46:30 +0200	[thread overview]
Message-ID: <52480506.6090706@seznam.cz> (raw)
In-Reply-To: <524804DB.7020108@seznam.cz>


---
 drivers/media/tuners/r820t.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c
index e25c720..36dc63e 100644
--- a/drivers/media/tuners/r820t.c
+++ b/drivers/media/tuners/r820t.c
@@ -596,13 +596,9 @@ static int r820t_set_pll(struct r820t_priv *priv,
enum v4l2_tuner_type type,
        while (mix_div <= 64) {
                if (((freq * mix_div) >= vco_min) &&
                   ((freq * mix_div) < vco_max)) {
-                       div_buf = mix_div;
-                       while (div_buf > 2) {
-                               div_buf = div_buf >> 1;
-                               div_num++;
-                       }
                        break;
                }
+               ++div_num;
                mix_div = mix_div << 1;
        }
 
-- 
1.8.3.2



  reply	other threads:[~2013-09-29 11:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-29 10:45 [PATCH 0/2] fix tunning for r820t tunner Jiří Pinkava
2013-09-29 10:45 ` [PATCH 1/2] [media] r820t: fix nint range check Jiří Pinkava
2013-09-29 10:46   ` Jiří Pinkava [this message]
2013-09-30 15:13     ` Subject: [PATCH 2/2] [media] r820t: simplify divisor calculation Michael Krufky
2013-09-30 15:07   ` [PATCH 1/2] [media] r820t: fix nint range check Michael Krufky
2013-09-30 16:42     ` Jiří Pinkava
2013-09-30 16:46       ` Michael Krufky
2013-09-30 17:34         ` Mauro Carvalho Chehab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52480506.6090706@seznam.cz \
    --to=j-pi@seznam.cz \
    --cc=gennarone@gmail.com \
    --cc=linux-media@vger.kernel.org \
    --cc=m.chehab@samsung.com \
    --cc=mkrufky@linuxtv.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.