From patchwork Thu Dec 3 13:54:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wong X-Patchwork-Id: 64538 X-Patchwork-Delegate: dougsland@redhat.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB3DsvAa032009 for ; Thu, 3 Dec 2009 13:54:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756140AbZLCNy0 (ORCPT ); Thu, 3 Dec 2009 08:54:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756110AbZLCNy0 (ORCPT ); Thu, 3 Dec 2009 08:54:26 -0500 Received: from mail-pw0-f42.google.com ([209.85.160.42]:45317 "EHLO mail-pw0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756088AbZLCNyY (ORCPT ); Thu, 3 Dec 2009 08:54:24 -0500 Received: by pwi3 with SMTP id 3so1100571pwi.21 for ; Thu, 03 Dec 2009 05:54:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type; bh=pugdboM2Svrugf4Dyf2yUOLrwKpBUSwHLBwBKgLgZXE=; b=iszRjsYiJXrAEyqrn7/yjAn2uzLIhNmZVbwsvp2B7LEdQgDXZ+QXAwTITLEdwnojFK QvOWHbwo3zVELVnY3P7eNHueDpY3ofRPJcgsCWQHR076wM/IXsSJI4BhBgZDVUg6DMZK xB6SesiS63tsmJwTqQdimfsRUW6DR+XK7JKgc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; b=kvjrUkR0e3sFSkBJFewhIOcwgKzLUjHekt7Q2KDXXwE1L1xf5N4S2zGh6jjrpKvoKt DIdJvLpn8MGkJibj8SzPR0sVKnwmkFpAMWwxbGG4Be3NIr2sAeO2aqec+0kTs4BBZEk3 iSGyQTCXso5KoC/kYqfdx0ndRgWHlU8YrZKto= Received: by 10.115.100.20 with SMTP id c20mr2406618wam.160.1259848471035; Thu, 03 Dec 2009 05:54:31 -0800 (PST) Received: from ?192.168.0.3? (n219073044176.netvigator.com [219.73.44.176]) by mx.google.com with ESMTPS id 23sm1703356pzk.12.2009.12.03.05.54.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 03 Dec 2009 05:54:29 -0800 (PST) Message-ID: <4B17C311.6050500@gmail.com> Date: Thu, 03 Dec 2009 21:54:25 +0800 From: "David T. L. Wong" User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Randy Dunlap CC: linux-next@vger.kernel.org, Stephen Rothwell , LKML , linux-media@vger.kernel.org, Mauro Carvalho Chehab Subject: [PATCH] max2165 32bit build patch References: <20091130175346.3f3345ed.sfr@canb.auug.org.au> <4B1409D9.1050901@oracle.com> <20091202100406.e25b2322.randy.dunlap@oracle.com> In-Reply-To: <20091202100406.e25b2322.randy.dunlap@oracle.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/linux/drivers/media/common/tuners/max2165.c b/linux/drivers/media/common/tuners/max2165.c --- a/linux/drivers/media/common/tuners/max2165.c +++ b/linux/drivers/media/common/tuners/max2165.c @@ -193,7 +193,7 @@ { u8 tf; u8 tf_ntch; - double t; + u32 t; u32 quotient, fraction; /* Set PLL divider according to RF frequency */ @@ -217,9 +217,6 @@ t += (priv->tf_balun_hi_ref - priv->tf_balun_low_ref) * (freq / 1000 - 470000) / (780000 - 470000); -#if 0 - tf = t + 0.5; /* round up */ -#endif tf = t; dprintk("tf = %X\n", tf); tf |= tf_ntch << 4;