From patchwork Mon Dec 28 17:48:49 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 2379 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Mon, 28 Dec 2009 17:49:12 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra with IMAP (fetchmail-6.3.6) for (single-drop); Mon, 28 Dec 2009 15:52:36 -0200 (BRST) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NPJiS-0004cI-7V; Mon, 28 Dec 2009 17:49:12 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751316AbZL1RtI (ORCPT + 1 other); Mon, 28 Dec 2009 12:49:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751031AbZL1RtH (ORCPT ); Mon, 28 Dec 2009 12:49:07 -0500 Received: from mail-fx0-f225.google.com ([209.85.220.225]:49931 "EHLO mail-fx0-f225.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751298AbZL1RtG (ORCPT ); Mon, 28 Dec 2009 12:49:06 -0500 Received: by fxm25 with SMTP id 25so4728295fxm.21 for ; Mon, 28 Dec 2009 09:49:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=K4u5dTeYEqZ5e56LxKidZH/zUmLRbroxuIvxV69LuEE=; b=OqG8H4yUu9i0C1/0czhs4YdyURFoeWXX6MXW7j5oMvNH/J74mREtFx3D7QZVFgXEoS L4Bz+xT+abUuQ/vTOq3zSDbY/RywgVYkWZFZOz+j+zDTHkwtbrAqzGfpJldxoGio3Erg WDzEaMgKrSV/0iYvOQ1XU29C7vmrEM/jGwrx0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=r/Z9v7oeCQ/sFbU/lCVVmgUdA6pF9Kst5Kv5Odah29FjrNInuqpFRdM9L7v1dHtAxb 8RK/uK+79t2SYhFWtx6WzoKSQGPksW0phDbqZaK3F88zinXLGzcYlOIwPd6mbR1EuyDA vFkqpjGmUf15qtHi9C1A79rozIK7yigNjBkzQ= Received: by 10.223.81.76 with SMTP id w12mr21388408fak.1.1262022545567; Mon, 28 Dec 2009 09:49:05 -0800 (PST) Received: from bicker ([196.216.13.156]) by mx.google.com with ESMTPS id 28sm17531105fkx.28.2009.12.28.09.48.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 28 Dec 2009 09:49:04 -0800 (PST) Date: Mon, 28 Dec 2009 19:48:49 +0200 From: Dan Carpenter To: Matthias Schwarzott Cc: linux-media@vger.kernel.org, Matthias Schwarzott , Mauro Carvalho Chehab Subject: [patch] fix weird array index in zl10036.c Message-ID: <20091228174849.GG17645@bicker> References: <20091227131529.GJ6075@bicker> <200912271802.46083.zzam@gentoo.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <200912271802.46083.zzam@gentoo.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org I was initially concerned about the weird array index (the 2 bumps into the next row of the array). Matthias Schwarzott look at the datasheet and it turns out it should be zl10036_init_tab[1][0] |= 0x01; Signed-off-by: Dan Carpenter Signed-off-by: Matthias Schwarzott --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- orig/drivers/media/dvb/frontends/zl10036.c 2009-12-28 19:04:51.000000000 +0200 +++ devel/drivers/media/dvb/frontends/zl10036.c 2009-12-28 19:07:18.000000000 +0200 @@ -411,7 +411,7 @@ static int zl10036_init_regs(struct zl10 state->bf = 0xff; if (!state->config->rf_loop_enable) - zl10036_init_tab[1][2] |= 0x01; + zl10036_init_tab[1][0] |= 0x01; deb_info("%s\n", __func__);