From patchwork Tue Jun 14 06:54:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Archit Taneja X-Patchwork-Id: 44 Return-path: Envelope-to: mchehab@pedra Delivery-date: Tue, 14 Jun 2011 08:29:33 -0300 Received: from mchehab by pedra with local (Exim 4.72) (envelope-from ) id 1QWRoK-0002gA-Gp for mchehab@pedra; Tue, 14 Jun 2011 08:29:32 -0300 Received: from casper.infradead.org [85.118.1.10] by pedra with IMAP (fetchmail-6.3.17) for (single-drop); Tue, 14 Jun 2011 08:29:32 -0300 (BRT) Received: from vger.kernel.org ([209.132.180.67]) by casper.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QWNPf-0003Hj-1r; Tue, 14 Jun 2011 06:47:47 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753771Ab1FNGrp (ORCPT + 1 other); Tue, 14 Jun 2011 02:47:45 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:57782 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753234Ab1FNGro (ORCPT ); Tue, 14 Jun 2011 02:47:44 -0400 Received: from dlep33.itg.ti.com ([157.170.170.112]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id p5E6liT8024790 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 14 Jun 2011 01:47:44 -0500 Received: from dlep26.itg.ti.com (smtp-le.itg.ti.com [157.170.170.27]) by dlep33.itg.ti.com (8.13.7/8.13.8) with ESMTP id p5E6lhEY015778 for ; Tue, 14 Jun 2011 01:47:43 -0500 (CDT) Received: from dlee73.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id p5E6lhgf022127 for ; Tue, 14 Jun 2011 01:47:43 -0500 (CDT) Received: from dlelxv24.itg.ti.com (172.17.1.199) by DLEE73.ent.ti.com (157.170.170.88) with Microsoft SMTP Server id 8.3.106.1; Tue, 14 Jun 2011 01:47:43 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id p5E6lh4l029963; Tue, 14 Jun 2011 01:47:43 -0500 Received: from localhost (a0393947pc.apr.dhcp.ti.com [172.24.137.144]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id p5E6lgf29337; Tue, 14 Jun 2011 01:47:42 -0500 (CDT) From: Archit Taneja To: CC: linux-media@vger.kernel.org, Archit Taneja Subject: [PATCH v2 1/3] OMAP_VOUT: CLEANUP: Move generic functions and macros to common files Date: Tue, 14 Jun 2011 12:24:45 +0530 Message-ID: <1308034487-11852-2-git-send-email-archit@ti.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1308034487-11852-1-git-send-email-archit@ti.com> References: <1308034487-11852-1-git-send-email-archit@ti.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: Move the inline functions rotate_90_or_270(), rotation_enabled(), and calc_rotation() from omap_vout.c to omap_voutdef.h. Move the independent functions omap_vout_alloc_buffer() and omap_vout_free_buffer() to omap_voutlib.c. Remove extern identifier from function definitions in omap_voutlib.h Add static identifier to functions that are used locally in omap_vout.c Signed-off-by: Archit Taneja --- drivers/media/video/omap/omap_vout.c | 117 +----------------------------- drivers/media/video/omap/omap_voutdef.h | 62 ++++++++++++++++ drivers/media/video/omap/omap_voutlib.c | 46 ++++++++++++ drivers/media/video/omap/omap_voutlib.h | 12 ++-- 4 files changed, 119 insertions(+), 118 deletions(-) diff --git a/drivers/media/video/omap/omap_vout.c b/drivers/media/video/omap/omap_vout.c index 5634097..1d4112b 100644 --- a/drivers/media/video/omap/omap_vout.c +++ b/drivers/media/video/omap/omap_vout.c @@ -35,17 +35,14 @@ #include #include #include -#include #include #include -#include #include #include #include #include -#include #include #include