[PATCH] drivers/isdn/: make some code static

This patch makes some needlessly global code static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Armin Schindler <armin@melware.de>
Signed-off-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Adrian Bunk and committed by Linus Torvalds aade0e82 687a21ce

+20 -28
+1 -1
drivers/isdn/hardware/eicon/dadapter.c
··· 44 44 Array to held adapter information 45 45 -------------------------------------------------------------------------- */ 46 46 static DESCRIPTOR HandleTable[NEW_MAX_DESCRIPTORS]; 47 - dword Adapters = 0; /* Number of adapters */ 47 + static dword Adapters = 0; /* Number of adapters */ 48 48 /* -------------------------------------------------------------------------- 49 49 Shadow IDI_DIMAINT 50 50 and 'shadow' debug stuff
+2 -2
drivers/isdn/hisax/hfc4s8s_l1.c
··· 1465 1465 /******************************************/ 1466 1466 /* disable memory mapped ports / io ports */ 1467 1467 /******************************************/ 1468 - void 1468 + static void 1469 1469 release_pci_ports(hfc4s8s_hw * hw) 1470 1470 { 1471 1471 pci_write_config_word(hw->pdev, PCI_COMMAND, 0); ··· 1481 1481 /*****************************************/ 1482 1482 /* enable memory mapped ports / io ports */ 1483 1483 /*****************************************/ 1484 - void 1484 + static void 1485 1485 enable_pci_ports(hfc4s8s_hw * hw) 1486 1486 { 1487 1487 #ifdef CONFIG_HISAX_HFC4S8S_PCIMEM
+11 -9
drivers/isdn/hysdn/hycapi.c
··· 42 42 43 43 static hycapi_appl hycapi_applications[CAPI_MAXAPPL]; 44 44 45 + static u16 hycapi_send_message(struct capi_ctr *ctrl, struct sk_buff *skb); 46 + 45 47 static inline int _hycapi_appCheck(int app_id, int ctrl_no) 46 48 { 47 49 if((ctrl_no <= 0) || (ctrl_no > CAPI_MAXCONTR) || (app_id <= 0) || ··· 59 57 Kernel-Capi callback reset_ctr 60 58 ******************************/ 61 59 62 - void 60 + static void 63 61 hycapi_reset_ctr(struct capi_ctr *ctrl) 64 62 { 65 63 hycapictrl_info *cinfo = ctrl->driverdata; ··· 75 73 Kernel-Capi callback remove_ctr 76 74 ******************************/ 77 75 78 - void 76 + static void 79 77 hycapi_remove_ctr(struct capi_ctr *ctrl) 80 78 { 81 79 int i; ··· 217 215 The application is recorded in the internal list. 218 216 *************************************************************/ 219 217 220 - void 218 + static void 221 219 hycapi_register_appl(struct capi_ctr *ctrl, __u16 appl, 222 220 capi_register_params *rp) 223 221 { ··· 293 291 registration at controller-level 294 292 ******************************************************************/ 295 293 296 - void 294 + static void 297 295 hycapi_release_appl(struct capi_ctr *ctrl, __u16 appl) 298 296 { 299 297 int chk; ··· 366 364 367 365 ***************************************************************/ 368 366 369 - u16 hycapi_send_message(struct capi_ctr *ctrl, struct sk_buff *skb) 367 + static u16 hycapi_send_message(struct capi_ctr *ctrl, struct sk_buff *skb) 370 368 { 371 369 __u16 appl_id; 372 370 int _len, _len2; ··· 439 437 440 438 *********************************************************************/ 441 439 442 - int hycapi_read_proc(char *page, char **start, off_t off, 443 - int count, int *eof, struct capi_ctr *ctrl) 440 + static int hycapi_read_proc(char *page, char **start, off_t off, 441 + int count, int *eof, struct capi_ctr *ctrl) 444 442 { 445 443 hycapictrl_info *cinfo = (hycapictrl_info *)(ctrl->driverdata); 446 444 hysdn_card *card = cinfo->card; ··· 487 485 488 486 **************************************************************/ 489 487 490 - int hycapi_load_firmware(struct capi_ctr *ctrl, capiloaddata *data) 488 + static int hycapi_load_firmware(struct capi_ctr *ctrl, capiloaddata *data) 491 489 { 492 490 #ifdef HYCAPI_PRINTFNAMES 493 491 printk(KERN_NOTICE "hycapi_load_firmware\n"); ··· 496 494 } 497 495 498 496 499 - char *hycapi_procinfo(struct capi_ctr *ctrl) 497 + static char *hycapi_procinfo(struct capi_ctr *ctrl) 500 498 { 501 499 hycapictrl_info *cinfo = (hycapictrl_info *)(ctrl->driverdata); 502 500 #ifdef HYCAPI_PRINTFNAMES
+2 -2
drivers/isdn/hysdn/hysdn_boot.c
··· 53 53 /* to be called at start of POF file reading, */ 54 54 /* before starting any decryption on any POF record. */ 55 55 /*****************************************************/ 56 - void 56 + static void 57 57 StartDecryption(struct boot_data *boot) 58 58 { 59 59 boot->Cryptor = CRYPT_STARTTERM; ··· 66 66 /* to HI and LO boot loader and (all) seq tags, because */ 67 67 /* global Cryptor is started for whole POF. */ 68 68 /***************************************************************/ 69 - void 69 + static void 70 70 DecryptBuf(struct boot_data *boot, int cnt) 71 71 { 72 72 uchar *bufp = boot->buf.BootBuf;
-12
drivers/isdn/hysdn/hysdn_defs.h
··· 227 227 /*****************/ 228 228 /* exported vars */ 229 229 /*****************/ 230 - extern int cardmax; /* number of found cards */ 231 230 extern hysdn_card *card_root; /* pointer to first card */ 232 231 233 232 ··· 243 244 /* hysdn_proclog.c */ 244 245 extern int hysdn_proclog_init(hysdn_card *); /* init proc log entry */ 245 246 extern void hysdn_proclog_release(hysdn_card *); /* deinit proc log entry */ 246 - extern void put_log_buffer(hysdn_card *, char *); /* output log data */ 247 247 extern void hysdn_addlog(hysdn_card *, char *,...); /* output data to log */ 248 248 extern void hysdn_card_errlog(hysdn_card *, tErrLogEntry *, int); /* output card log */ 249 249 ··· 276 278 extern int hycapi_capi_create(hysdn_card *); /* create a new capi device */ 277 279 extern int hycapi_capi_release(hysdn_card *); /* delete the device */ 278 280 extern int hycapi_capi_stop(hysdn_card *card); /* suspend */ 279 - extern int hycapi_load_firmware(struct capi_ctr *, capiloaddata *); 280 - extern void hycapi_reset_ctr(struct capi_ctr *); 281 - extern void hycapi_remove_ctr(struct capi_ctr *); 282 - extern void hycapi_register_appl(struct capi_ctr *, __u16 appl, 283 - capi_register_params *); 284 - extern void hycapi_release_appl(struct capi_ctr *, __u16 appl); 285 - extern u16 hycapi_send_message(struct capi_ctr *, struct sk_buff *skb); 286 - extern char *hycapi_procinfo(struct capi_ctr *); 287 - extern int hycapi_read_proc(char *page, char **start, off_t off, 288 - int count, int *eof, struct capi_ctr *card); 289 281 extern void hycapi_rx_capipkt(hysdn_card * card, uchar * buf, word len); 290 282 extern void hycapi_tx_capiack(hysdn_card * card); 291 283 extern struct sk_buff *hycapi_tx_capiget(hysdn_card *card);
+1 -1
drivers/isdn/hysdn/hysdn_init.c
··· 34 34 MODULE_LICENSE("GPL"); 35 35 36 36 static char *hysdn_init_revision = "$Revision: 1.6.6.6 $"; 37 - int cardmax; /* number of found cards */ 37 + static int cardmax; /* number of found cards */ 38 38 hysdn_card *card_root = NULL; /* pointer to first card */ 39 39 40 40 /**********************************************/
+3 -1
drivers/isdn/hysdn/hysdn_proclog.c
··· 22 22 /* the proc subdir for the interface is defined in the procconf module */ 23 23 extern struct proc_dir_entry *hysdn_proc_entry; 24 24 25 + static void put_log_buffer(hysdn_card * card, char *cp); 26 + 25 27 /*************************************************/ 26 28 /* structure keeping ascii log for device output */ 27 29 /*************************************************/ ··· 95 93 /* opened for read got the contents. */ 96 94 /* Flushes buffers not longer in use. */ 97 95 /********************************************/ 98 - void 96 + static void 99 97 put_log_buffer(hysdn_card * card, char *cp) 100 98 { 101 99 struct log_data *ib;