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: 877942 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5E6llC5010187 for ; Tue, 14 Jun 2011 06:47:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753771Ab1FNGrp (ORCPT ); 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 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 14 Jun 2011 06:47:47 +0000 (UTC) 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