From patchwork Mon May 21 22:10:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 11370 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1SWaoc-0005wk-Gi for patchwork@linuxtv.org; Tue, 22 May 2012 00:10:58 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.75/mailfrontend-3) with esmtp for id 1SWaoc-0003E2-Cy; Tue, 22 May 2012 00:10:58 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932183Ab2EUWKn (ORCPT ); Mon, 21 May 2012 18:10:43 -0400 Received: from ch1ehsobe006.messaging.microsoft.com ([216.32.181.186]:6257 "EHLO ch1outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759443Ab2EUWKm (ORCPT ); Mon, 21 May 2012 18:10:42 -0400 Received: from mail141-ch1-R.bigfish.com (10.43.68.238) by CH1EHSOBE005.bigfish.com (10.43.70.55) with Microsoft SMTP Server id 14.1.225.23; Mon, 21 May 2012 22:10:27 +0000 Received: from mail141-ch1 (localhost [127.0.0.1]) by mail141-ch1-R.bigfish.com (Postfix) with ESMTP id AFA0C3201B1; Mon, 21 May 2012 22:10:27 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bhz2dh2a8h668h839hd24he5bhf0ah) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail141-ch1 (localhost.localdomain [127.0.0.1]) by mail141-ch1 (MessageSwitch) id 1337638225514392_11154; Mon, 21 May 2012 22:10:25 +0000 (UTC) Received: from CH1EHSMHS011.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.243]) by mail141-ch1.bigfish.com (Postfix) with ESMTP id 7737C3C017F; Mon, 21 May 2012 22:10:25 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CH1EHSMHS011.bigfish.com (10.43.70.11) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 21 May 2012 22:10:25 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server (TLS) id 14.2.298.5; Mon, 21 May 2012 17:10:37 -0500 Received: from fabio-Latitude-E6410.am.freescale.net ([10.29.240.143]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id q4LMAWZu019896; Mon, 21 May 2012 15:10:32 -0700 From: Fabio Estevam To: CC: , , , , Fabio Estevam Subject: [PATCH] video: mx2_camera: Fix build error due to the lack of 'pixfmt' definition Date: Mon, 21 May 2012 19:10:27 -0300 Message-ID: <1337638227-20379-1-git-send-email-fabio.estevam@freescale.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-OriginatorOrg: freescale.com Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.5.21.220329 X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, MSGID_ADDED_BY_MTA 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1100_1199 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_MEDIA_BODY 0, __CP_POSSIBLE_EXPLOIT_SUBJ 0, __CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MULTIPLE_RCPTS_CC_X2 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS ' commit d509835 ([media] media: mx2_camera: Fix mbus format handling) caused the following build error: drivers/media/video/mx2_camera.c:1032:42: error: 'pixfmt' undeclared (first use in this function) make[4]: *** [drivers/media/video/mx2_camera.o] Error 1 Fix this build error by providing a 'pixfmt' definition. Signed-off-by: Fabio Estevam --- drivers/media/video/mx2_camera.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/mx2_camera.c b/drivers/media/video/mx2_camera.c index ded26b7..ef72733 100644 --- a/drivers/media/video/mx2_camera.c +++ b/drivers/media/video/mx2_camera.c @@ -989,6 +989,7 @@ static int mx2_camera_set_bus_param(struct soc_camera_device *icd) int ret; int bytesperline; u32 csicr1 = pcdev->csicr1; + u32 pixfmt = icd->current_fmt->host_fmt->fourcc; ret = v4l2_subdev_call(sd, video, g_mbus_config, &cfg); if (!ret) {