From patchwork Thu Aug 2 07:40:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dror Cohen X-Patchwork-Id: 1266711 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by patchwork1.kernel.org (Postfix) with ESMTP id 5AF6A3FCC5 for ; Thu, 2 Aug 2012 07:42:55 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id q727f3HG015180; Thu, 2 Aug 2012 02:41:03 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id q727f3RS003631; Thu, 2 Aug 2012 02:41:03 -0500 Received: from dlelxv24.itg.ti.com (172.17.1.199) by dfle73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.1.323.3; Thu, 2 Aug 2012 02:41:03 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id q727f2Cc015364; Thu, 2 Aug 2012 02:41:02 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 157E980627; Thu, 2 Aug 2012 02:41:02 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp52.itg.ti.com (dflp52.itg.ti.com [128.247.22.96]) by linux.omap.com (Postfix) with ESMTP id A9C1780626 for ; Thu, 2 Aug 2012 02:40:59 -0500 (CDT) Received: from medina.ext.ti.com (medina.ext.ti.com [192.91.81.31]) by dflp52.itg.ti.com (8.13.7/8.13.8) with ESMTP id q727extH020525 for ; Thu, 2 Aug 2012 02:40:59 -0500 (CDT) Received: from psmtp.com (na3sys009amx191.postini.com [74.125.149.172]) by medina.ext.ti.com (8.13.7/8.13.7) with SMTP id q727ewen018555 for ; Thu, 2 Aug 2012 02:40:58 -0500 Received: from eu1sys200aog120.obsmtp.com ([207.126.144.149]) by na3sys009amx191.postini.com ([74.125.148.10]) with SMTP; Thu, 02 Aug 2012 07:40:58 GMT Received: from mail-we0-f182.google.com ([74.125.82.182]) (using TLSv1) by eu1sys200aob120.postini.com ([207.126.147.11]) with SMTP ID DSNKUBovCRFDgw5g8l0EUlUqll9pr7IyR+/6@postini.com; Thu, 02 Aug 2012 07:40:58 UTC Received: by weyx56 with SMTP id x56so9045683wey.27 for ; Thu, 02 Aug 2012 00:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=liveu.tv; s=google; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :signed-off-by; bh=lC82oHNYO7vtR9LOevN5miipptKAbkEDFeoX6GCRDKQ=; b=L6bb319MX04YApo7vnikneihXZSygVZ1MZwEIdqcmuzPli3hX3/PQKVIrAekcoArEy ZBkPUdpG7iFM0ogdp+ban1dUF8agxB7GR+1VNr3jAxwFF+cTPnKHbjOM3udMctjef5dG BUyMTR+76zLhf54E6GbFGguYofmtrRdMBVYqA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :signed-off-by:x-gm-message-state; bh=lC82oHNYO7vtR9LOevN5miipptKAbkEDFeoX6GCRDKQ=; b=KzJTbS4yrneLFkSKeCcNAcrfsYytpqE8uJXE3WQcJ7KkHb8wRnFiPTIQDaDax4+4iB JbqU0BaOpWbbjWX5IoTNH26/F+clhANkw2SiW5HfRuPmlP9yy4GZqofltrWfhXOD/UJT YCugiITMN6zmb7Fpp5HA9QGv5Ov78+1ZAnBQ14r1tpslk5ioJdPb448LwBjXjcpcPi7y XwOblVPFTozimGAUoqqPcCWl1xfcbcGlIxSojFFDFJiccBIJpxfzZ2WlQ3df17cS9S/I fy95JFjf4Xjx8Wivh1nHaSZVOaWucFVXL2j9wsx3UOw7iY7VQwHx/GSvqHWN57B4PlRC p3qg== Received: by 10.216.138.92 with SMTP id z70mr9827057wei.68.1343893257088; Thu, 02 Aug 2012 00:40:57 -0700 (PDT) Received: from drorlenovo.?null? ([199.203.78.113]) by mx.google.com with ESMTPS id fr4sm15298779wib.8.2012.08.02.00.40.54 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Aug 2012 00:40:56 -0700 (PDT) From: Dror Cohen To: Subject: [PATCH 1/1] media/video: vpif: fixing function name start to vpif_config_params Date: Thu, 2 Aug 2012 10:40:32 +0300 Message-ID: <1343893232-19543-2-git-send-email-dror@liveu.tv> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1343893232-19543-1-git-send-email-dror@liveu.tv> References: <1343893232-19543-1-git-send-email-dror@liveu.tv> Signed-off-by: dror@liveu.tv X-Gm-Message-State: ALoCoQlFvDCo1r29SqrMWL9n6oPl+Po4OFfcfHPy9NZ8eOVMJ8fMFC+Y0XBQ++XW0h9xiG6440K9 X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:99.90000/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-dkim: 1 skipped:not-enabled X-pstn-settings: 2 (0.5000:0.0050) s cv GT3 gt2 gt1 r p m c X-pstn-addresses: from [82/3] CC: , X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com diff --git a/drivers/media/video/davinci/vpif.c b/drivers/media/video/davinci/vpif.c index af96802..04dd8fa 100644 --- a/drivers/media/video/davinci/vpif.c +++ b/drivers/media/video/davinci/vpif.c @@ -301,12 +301,12 @@ static void vpif_set_mode_info(const struct vpif_channel_config_params *config, regw(value, vpifregs[channel_id].v_cfg); } -/* config_vpif_params +/* vpif_config_params * Function to set the parameters of a channel * Mainly modifies the channel ciontrol register * It sets frame format, yc mux mode */ -static void config_vpif_params(struct vpif_params *vpifparams, +static void vpif_config_params(struct vpif_params *vpifparams, u8 channel_id, u8 found) { const struct vpif_channel_config_params *config = &vpifparams->std_info; @@ -374,7 +374,7 @@ int vpif_set_video_params(struct vpif_params *vpifparams, u8 channel_id) found = 2; } - config_vpif_params(vpifparams, channel_id, found); + vpif_config_params(vpifparams, channel_id, found); regw(0x80, VPIF_REQ_SIZE); regw(0x01, VPIF_EMULATION_CTRL); diff --git a/drivers/media/video/davinci/vpif_capture.c b/drivers/media/video/davinci/vpif_capture.c index 9604695..59104e6 100644 --- a/drivers/media/video/davinci/vpif_capture.c +++ b/drivers/media/video/davinci/vpif_capture.c @@ -67,7 +67,7 @@ MODULE_PARM_DESC(ch3_numbuffers, "Channel1 buffer count (default:3)"); MODULE_PARM_DESC(ch2_bufsize, "Channel0 buffer size (default:1920 x 1080 x 2)"); MODULE_PARM_DESC(ch3_bufsize, "Channel1 buffer size (default:720 x 576 x 2)"); -static struct vpif_config_params config_params = { +static struct config_vpif_params_t config_params = { .min_numbuffers = 3, .numbuffers[0] = 3, .numbuffers[1] = 3, diff --git a/drivers/media/video/davinci/vpif_capture.h b/drivers/media/video/davinci/vpif_capture.h index a693d4e..8863de1 100644 --- a/drivers/media/video/davinci/vpif_capture.h +++ b/drivers/media/video/davinci/vpif_capture.h @@ -144,7 +144,7 @@ struct vpif_device { struct v4l2_subdev **sd; }; -struct vpif_config_params { +struct config_vpif_params_t { u8 min_numbuffers; u8 numbuffers[VPIF_CAPTURE_NUM_CHANNELS]; s8 device_type; diff --git a/drivers/media/video/davinci/vpif_display.c b/drivers/media/video/davinci/vpif_display.c index e6488ee..652440d 100644 --- a/drivers/media/video/davinci/vpif_display.c +++ b/drivers/media/video/davinci/vpif_display.c @@ -70,7 +70,7 @@ MODULE_PARM_DESC(ch3_numbuffers, "Channel3 buffer count (default:3)"); MODULE_PARM_DESC(ch2_bufsize, "Channel2 buffer size (default:1920 x 1080 x 2)"); MODULE_PARM_DESC(ch3_bufsize, "Channel3 buffer size (default:720 x 576 x 2)"); -static struct vpif_config_params config_params = { +static struct config_vpif_params_t config_params = { .min_numbuffers = 3, .numbuffers[0] = 3, .numbuffers[1] = 3, diff --git a/drivers/media/video/davinci/vpif_display.h b/drivers/media/video/davinci/vpif_display.h index 56879d1..3e14807 100644 --- a/drivers/media/video/davinci/vpif_display.h +++ b/drivers/media/video/davinci/vpif_display.h @@ -154,7 +154,7 @@ struct vpif_device { }; -struct vpif_config_params { +struct config_vpif_params_t { u32 min_bufsize[VPIF_DISPLAY_NUM_CHANNELS]; u32 channel_bufsize[VPIF_DISPLAY_NUM_CHANNELS]; u8 numbuffers[VPIF_DISPLAY_NUM_CHANNELS];