From patchwork Wed Sep 24 03:06:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olli Salonen X-Patchwork-Id: 4961471 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 659149F2BB for ; Wed, 24 Sep 2014 03:07:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 53C242022D for ; Wed, 24 Sep 2014 03:07:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E7A3E20149 for ; Wed, 24 Sep 2014 03:07:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755198AbaIXDHF (ORCPT ); Tue, 23 Sep 2014 23:07:05 -0400 Received: from mail-la0-f50.google.com ([209.85.215.50]:37346 "EHLO mail-la0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754381AbaIXDHD (ORCPT ); Tue, 23 Sep 2014 23:07:03 -0400 Received: by mail-la0-f50.google.com with SMTP id ty20so10011877lab.9 for ; Tue, 23 Sep 2014 20:07:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=ngQMVrT3AlPr/kzwJ+Bg0p7UmwTR/uv0/92UIOWvGeQ=; b=eKqpRA0I8Il3ZjfFmHZpCMVAhfCh719avrvszFN2wDHfsIQp++uONYk88Bm9WyCXLh yX41unYZ2dek5dUB9MaOGxQvIbn8GOYUTii25k9+wUAS9ZB4xeB1e9/nRI2x64naOucl esfuUJUC0MwqxwFw/9A5fTg3kSxQqOFkqXoOz060KJnLKyO2oNbRnuvI6MAO52D6eo9v 99ajG08RHLJ4ufGrZ7n7BeU2U1duqUQYiI/1qDykdnE2qA1952+vk9/APAtSAhJ5H4Ji aQzMBGoc0gasp9xKi3M7cKdS/8znKuu7ERCP3vtJrGeCxF3rkpIA02XFjCq8c7hnh1Og +KKA== X-Gm-Message-State: ALoCoQkjN0HS+RifQLXoFHNyO3ypWUPuc6ddRnqQma386hTvesO84c3Kak5T5vl4cQvLKq5HHzzt X-Received: by 10.112.130.129 with SMTP id oe1mr3362485lbb.4.1411528021846; Tue, 23 Sep 2014 20:07:01 -0700 (PDT) Received: from localhost.localdomain (nautilus.laiva.org. [62.142.120.74]) by mx.google.com with ESMTPSA id q14sm5309170lal.6.2014.09.23.20.07.00 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 23 Sep 2014 20:07:00 -0700 (PDT) From: Olli Salonen To: linux-media@vger.kernel.org Cc: Olli Salonen Subject: [PATCH] cx23885: initialize config structs for T9580 Date: Wed, 24 Sep 2014 06:06:54 +0300 Message-Id: <1411528014-14650-1-git-send-email-olli.salonen@iki.fi> X-Mailer: git-send-email 1.7.0.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The config structs used for DVBSky T9580 were not initialized. This patch fixes that. Signed-off-by: Olli Salonen Reviewed-by: Antti Palosaari --- drivers/media/pci/cx23885/cx23885-dvb.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/media/pci/cx23885/cx23885-dvb.c b/drivers/media/pci/cx23885/cx23885-dvb.c index 13734b8..4cb9031 100644 --- a/drivers/media/pci/cx23885/cx23885-dvb.c +++ b/drivers/media/pci/cx23885/cx23885-dvb.c @@ -1600,6 +1600,7 @@ static int dvb_register(struct cx23885_tsport *port) break; /* attach tuner */ + memset(&m88ts2022_config, 0, sizeof(m88ts2022_config)); m88ts2022_config.fe = fe0->dvb.frontend; m88ts2022_config.clock = 27000000; memset(&info, 0, sizeof(struct i2c_board_info)); @@ -1635,6 +1636,7 @@ static int dvb_register(struct cx23885_tsport *port) /* port c - terrestrial/cable */ case 2: /* attach frontend */ + memset(&si2168_config, 0, sizeof(si2168_config)); si2168_config.i2c_adapter = &adapter; si2168_config.fe = &fe0->dvb.frontend; si2168_config.ts_mode = SI2168_TS_SERIAL; @@ -1654,6 +1656,7 @@ static int dvb_register(struct cx23885_tsport *port) port->i2c_client_demod = client_demod; /* attach tuner */ + memset(&si2157_config, 0, sizeof(si2157_config)); si2157_config.fe = fe0->dvb.frontend; memset(&info, 0, sizeof(struct i2c_board_info)); strlcpy(info.type, "si2157", I2C_NAME_SIZE);