From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian Bunk Subject: [2.6 patch] drivers/video/: possible cleanups Date: Sun, 6 Nov 2005 01:50:26 +0100 Message-ID: <20051106005026.GE3668@stusta.de> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1EYYjx-0007gm-KH for linux-fbdev-devel@lists.sourceforge.net; Sat, 05 Nov 2005 16:50:33 -0800 Received: from mailout.stusta.mhn.de ([141.84.69.5]) by mail.sourceforge.net with smtp (Exim 4.44) id 1EYYjw-0002LR-Ln for linux-fbdev-devel@lists.sourceforge.net; Sat, 05 Nov 2005 16:50:33 -0800 Content-Disposition: inline Sender: linux-fbdev-devel-admin@lists.sourceforge.net Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: adaplas@pol.net Cc: linux-fbdev-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org This patch contains the possible cleanups including the following: - every file should #include the headers containing the prototypes for it's global functions - make needlessly global functions static - kyro/STG4000Interface.h: #include video/kyro.h and linux/pci.h instead of a manual "struct pci_dev" - i810_main.{c,h}: prototypes for static functions belong to the C file Signed-off-by: Adrian Bunk --- drivers/video/arcfb.c | 8 +-- drivers/video/console/softcursor.c | 2 drivers/video/i810/i810-i2c.c | 1 drivers/video/i810/i810_accel.c | 1 drivers/video/i810/i810_gtf.c | 1 drivers/video/i810/i810_main.c | 51 ++++++++++++++++++-- drivers/video/i810/i810_main.h | 56 +--------------------- drivers/video/kyro/STG4000InitDevice.c | 1 drivers/video/kyro/STG4000Interface.h | 3 - drivers/video/kyro/STG4000OverlayDevice.c | 1 drivers/video/matrox/matroxfb_g450.c | 2 drivers/video/nvidia/nv_hw.c | 1 drivers/video/tdfxfb.c | 2 13 files changed, 68 insertions(+), 62 deletions(-) --- linux-2.6.14-rc5-mm1-full/drivers/video/console/softcursor.c.old 2005-11-06 00:31:15.000000000 +0100 +++ linux-2.6.14-rc5-mm1-full/drivers/video/console/softcursor.c 2005-11-06 00:31:30.000000000 +0100 @@ -17,6 +17,8 @@ #include #include +#include "fbcon.h" + int soft_cursor(struct fb_info *info, struct fb_cursor *cursor) { unsigned int scan_align = info->pixmap.scan_align - 1; --- linux-2.6.14-rc5-mm1-full/drivers/video/kyro/STG4000Interface.h.old 2005-11-06 00:41:04.000000000 +0100 +++ linux-2.6.14-rc5-mm1-full/drivers/video/kyro/STG4000Interface.h 2005-11-06 00:42:17.000000000 +0100 @@ -11,7 +11,8 @@ #ifndef _STG4000INTERFACE_H #define _STG4000INTERFACE_H -struct pci_dev; +#include +#include