From patchwork Fri Aug 30 12:29:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gianluca Gennari X-Patchwork-Id: 2851942 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3FC2CC0AB5 for ; Fri, 30 Aug 2013 12:29:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 24F00202E6 for ; Fri, 30 Aug 2013 12:29:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F18C220348 for ; Fri, 30 Aug 2013 12:29:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755624Ab3H3M3r (ORCPT ); Fri, 30 Aug 2013 08:29:47 -0400 Received: from mail-ee0-f54.google.com ([74.125.83.54]:38134 "EHLO mail-ee0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755496Ab3H3M3q (ORCPT ); Fri, 30 Aug 2013 08:29:46 -0400 Received: by mail-ee0-f54.google.com with SMTP id e53so877932eek.41 for ; Fri, 30 Aug 2013 05:29:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jREojVSHjCMXF0DIWOZP1fUz2jVJLoWGWoBxdEuwJBc=; b=sgFaxGDvgBRUulwHXgzNelOCZY306clyJwh4EoeCpLe5w5iB9XCJIxTDagRwedwlGC 2O6fk/h3vmzAzPlitgG8MpsXxMwBUKuwuV7bsfLImd+XfQ97C9FTBoxZ+kwTHOs2Ni1D covBbw2Ckx6v3hK54oIrlrhiNPoSAhu4+cgheEUhCFvB9uEHbjPOdbxa8NFvyjSZ5N4q hTn/MMEy3IKr7TUPUn2QgS1JPpSq9Dykhu65sxTyE4GetTxmrBGFQQqqYvgwPOctb95R kRqTkxDVPgnkJc1kil5x9qdYtCe36fEj1dEEA9JMSf+HHOCO71QvagohFk0wkhulIdbj 28Zg== X-Received: by 10.14.177.199 with SMTP id d47mr12306284eem.14.1377865785542; Fri, 30 Aug 2013 05:29:45 -0700 (PDT) Received: from precision.spark.local (host84-170-static.92-94-b.business.telecomitalia.it. [94.92.170.84]) by mx.google.com with ESMTPSA id r48sm54372542eev.14.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 30 Aug 2013 05:29:44 -0700 (PDT) From: Gianluca Gennari To: linux-media@vger.kernel.org, m.chehab@samsung.com, hans.verkuil@cisco.com Cc: Gianluca Gennari Subject: [PATCH 4/4] ths8200: fix compilation with GCC < 4.4.6 Date: Fri, 30 Aug 2013 14:29:25 +0200 Message-Id: <1377865765-25203-5-git-send-email-gennarone@gmail.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1377865765-25203-1-git-send-email-gennarone@gmail.com> References: <1377865765-25203-1-git-send-email-gennarone@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Signed-off-by: Gianluca Gennari --- drivers/media/i2c/ths8200.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/media/i2c/ths8200.c b/drivers/media/i2c/ths8200.c index a58a8f6..d9f65d7 100644 --- a/drivers/media/i2c/ths8200.c +++ b/drivers/media/i2c/ths8200.c @@ -46,14 +46,10 @@ struct ths8200_state { static const struct v4l2_dv_timings_cap ths8200_timings_cap = { .type = V4L2_DV_BT_656_1120, - .bt = { - .max_width = 1920, - .max_height = 1080, - .min_pixelclock = 25000000, - .max_pixelclock = 148500000, - .standards = V4L2_DV_BT_STD_CEA861, - .capabilities = V4L2_DV_BT_CAP_PROGRESSIVE, - }, + /* keep this initialization for compatibility with GCC < 4.4.6 */ + .reserved = { 0 }, + V4L2_INIT_BT_TIMINGS(0, 1920, 0, 1080, 25000000, 148500000, + V4L2_DV_BT_STD_CEA861, V4L2_DV_BT_CAP_PROGRESSIVE) }; static inline struct ths8200_state *to_state(struct v4l2_subdev *sd)