From a137ac870ba7df53e0c68cf2af2c79a71a2050c0 Mon Sep 17 00:00:00 2001 From: archit taneja Date: Tue, 14 Jun 2011 03:54:45 -0300 Subject: [PATCH] [media] OMAP_VOUT: CLEANUP: Move generic functions and macros to common files 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 Signed-off-by: Vaibhav Hiremath Signed-off-by: Mauro Carvalho Chehab --- 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 cb70ff139d8..131aff63458 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